Bob Showalter wrote:
>
> > From: [EMAIL PROTECTED]
> >
> > This should not matter what the size is but would
> > expect a number at
> > the beginning:
> >
> > foreach my $MyKey (sort {$a->[1] <=> $b->[1]}
> > map{[ $_, /^(\d+)/ ]}
> > keys %final_list) {
> > printf "%-s\n", $MyKey->[0];
> > }
>
> Given the behavior of <=> with strings beginning with
> a number, isn't this unecessary?
>
> What if the string contains a negative or floating-point
> number? Leading blanks?
Also, this only sorts the numerical half of the key, it doesn't sort the
whole key.
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]