danmcb has asked for the wisdom of the Perl Monks concerning the following question:
Why can I do :
my @l = (1 .. 10);and get the expected result, but not
my @l = (10 .. 1);(not that it's really a problem as we have reverse(), but I just wondered.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: literal lists
by svenXY (Deacon) on Sep 06, 2005 at 09:30 UTC | |
by danmcb (Monk) on Sep 06, 2005 at 10:07 UTC | |
|
Re: literal lists
by phaylon (Curate) on Sep 06, 2005 at 11:30 UTC | |
by danmcb (Monk) on Sep 06, 2005 at 12:03 UTC | |
by gellyfish (Monsignor) on Sep 06, 2005 at 12:10 UTC | |
by danmcb (Monk) on Sep 06, 2005 at 12:42 UTC |