[Omaha.pm] 4..1 is not 1..4 reversed
Jay Hannah
jhannah at omnihotels.com
Thu Mar 17 02:16:17 PST 2005
Oh... I guess this is the new thing I learned today.
This works:
$ perl -e 'print join "", 1..4'
1234
And I thought this would work too:
$ perl -e 'print join "", 4..1'
Nope. 4..1 isn't a 4 integer series. I thought it was. I guess I'll switch to "reverse 1..4".
I thought ".." worked on any ASCII series, forward or backward. I guess it only works forward.
j
More information about the Omaha-pm
mailing list