"be consistent" | |
PerlMonks |
Re^3: unxpected sort warnings while using sortby marinersk (Priest) |
on Jul 24, 2015 at 20:02 UTC ( [id://1136224]=note: print w/replies, xml ) | Need Help?? |
To be fair, Perl will usually just "do the right thing" for you with numbers inside strings. But it can only read your mind so far. See:
Results in:
However:
Results in:
You see how Perl took the first number in the line and added 1 to it? But the rest of the line has been ignored, and thrown away. If you want the rest of the numbers used, as noted throughout this thread, you have two choices:
In Section
Seekers of Perl Wisdom
|
|