From: Ian Jackson Subject: Re: [OSSTEST] ms-planner: add a flight summary html report Date: Thu, 1 May 2014 12:09:41 +0100 Message-ID: <21346.11125.405446.321022@mariner.uk.xensource.com> References: <1398677082-30965-1-git-send-email-ian.campbell@citrix.com> <21345.6748.9086.717380@mariner.uk.xensource.com> <1398873507.29888.19.camel@kazak.uk.xensource.com> <21345.8940.179394.862131@mariner.uk.xensource.com> <1398875385.5166.4.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1398875385.5166.4.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Ian Jackson , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [OSSTEST] ms-planner: add a flight summary html report"): > On Wed, 2014-04-30 at 17:21 +0100, Ian Jackson wrote: > > Hrm, it turns out that some time in the last decade it became possible > > to write local lexical subroutines that aren't coderefs. So try > > sub sortkey { ... } > > just before the sort. These lexical subroutines don't work properly anyway. I knew there was a reason I didn't do that. Forget about that. What I meant the first time was something like my $jsortkey = sub { $inf->{Jobs}{$_[0]}->{Start}->{Time}; }; foreach my $job (sort { $jsortkey->($a) cmp $jsortkey->(b) } keys ... Ian.