kettle has asked for the wisdom of the Perl Monks concerning the following question:
This sort of problem does't always crop up so I'm really wondering why it does in this particular instance.#!/usr/bin/perl -w my ($a,$b,$c,@home); @home = (1,2,2,23,10,9); print map{$_."\n"} sort {my $a<=>my $b} @home;
2006-04-13 Retitled by planetscape, as per Monastery guidelines
Original title: 'not quite clear'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Declaring my variables in sort function?
by Corion (Patriarch) on Apr 12, 2006 at 08:09 UTC | |
|
Re: Declaring my variables in sort function?
by strat (Canon) on Apr 12, 2006 at 08:10 UTC | |
|
Re: Declaring my variables in sort function?
by perladdict (Chaplain) on Apr 12, 2006 at 10:47 UTC |