Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Modeling FIFO financial transactions in Perl

Expand Messages
  • merlyn@stonehenge.com
    ... Peter @transactions = sort { $a- {timestamp} $b- {timestamp} }, Peter @transactions; That comma doesn t go there. It s either: sort EXPRESSION, LIST
    Message 1 of 3 , Mar 10, 2010
      >>>>> "Peter" == Peter L Berghold <peter@...> writes:

      Peter> @transactions = sort { $a->{timestamp} <=> $b->{timestamp} },
      Peter> @transactions;

      That comma doesn't go there.

      It's either:



      sort { STATEMENTS } LIST

      Note the absence of comma in the latter.
      Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
      <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
      Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
      See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
    Your message has been successfully submitted and would be delivered to recipients shortly.