Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Sorting result of function call

by sgt (Deacon)
on Dec 20, 2006 at 10:25 UTC ( [id://590879] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     
    % stephan@armen (/home/stephan) %
    % perl -w sort_context.px
    ...
    called:array:13
    called:array:13
    called:array:13
    
  2. or download this
    % stephan@armen (/home/stephan) %
    % perl -MO=Deparse sort_context.px
    ...
    say sort(@{[get_keys()];});
    say sort(@{[get_keys()];});
    sort_context.px syntax OK