|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: while loop returning numbers not stringsby Rudolf (Monk) |
| on Dec 05, 2012 at 18:27 UTC ( #1007360=note: print w/ replies, xml ) | Need Help?? |
|
Evaluating @word like so will return a number; you can put your array into double quotes:
However, I think since your already going through the lines your better off just doing this:
Update: I see now that split is the problem, and putting it into scalar context
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||