in reply to Re^2: using function output ananymous array vs. named array in foreach
in thread using function output ananymous array vs. named array in foreach
actually chomp() returns the number of "characters" that were chomped - not the delimiters.
You're right of course. (But your over elaborate demonstration added nothing to the simple statement of fact.)
I remember discovering early on that the return from chomp wasn't useful and I've never concerned myself with what non-useful thing it actually returned ever since.
So the OP's code is not going to work...
That was the point I was making when I said: "Neither snippet will do what you think it will do.".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: using function output ananymous array vs. named array in foreach
by Marshall (Canon) on Dec 27, 2012 at 02:38 UTC |