geuma has asked for the wisdom of the Perl Monks concerning the following question:
working, but not:geuma@geuma:~$ perl -e 'for (1..5) { print "$_\n" };' 1 2 3 4 5
There is also no error or warning with that kind of code. I know, that there are a lot of ways to do this... but i think its strange ... is anybody able to explain this behaviorgeuma@geuma:~$ perl -e 'for (5..1) { print "$_\n" };'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: max .. min does not work
by davorg (Chancellor) on Jul 23, 2008 at 16:15 UTC | |
|
Re: max .. min does not work
by broomduster (Priest) on Jul 23, 2008 at 16:13 UTC | |
|
Re: max .. min does not work
by FunkyMonk (Bishop) on Jul 23, 2008 at 16:11 UTC | |
|
Re: max .. min does not work
by olus (Curate) on Jul 23, 2008 at 16:19 UTC | |
by toolic (Bishop) on Jul 23, 2008 at 16:28 UTC | |
by AltBlue (Chaplain) on Jul 23, 2008 at 19:20 UTC | |
by olus (Curate) on Jul 23, 2008 at 16:48 UTC | |
|
Re: max .. min does not work
by moritz (Cardinal) on Jul 23, 2008 at 16:16 UTC | |
|
Re: max .. min does not work
by shmem (Chancellor) on Jul 23, 2008 at 23:24 UTC |