#!/usr/bin/perl $\="\n"; my %hash = ( 1 => "One", 2 => "Two", 3 => "Three", 4 => "Four", 5 => "Five", 6 => "Six", 12 => "Twelve", ); print "Integer is: $_ -- Alpha is: $hash{$_}" for (sort {$a <=> $b} + keys %hash)
In reply to Re: Effective sort method?
by smokemachine
in thread Effective sort method?
by Elijah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |