Jeff Pang wrote:

: my @original=(...);
: my @sort=sort {$a cmp $b} @original;
: print Dumper @sort;

    You might like the results better using an array reference.

print Dumper [EMAIL PROTECTED];


    Or you could avoid the extra array with the anonymous array
constructor (or is it an operator? [shrug])

print Dumper [ sort {$a cmp $b} @original ];


HTH,    

Charles K. Clarkson
-- 
Mobile Homes Specialist
Free Market Advocate
Web Programmer

254 968-8328

If it looks wrong convert it to plain text.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to