Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Question re numbers and stringsby pat_mc (Pilgrim) |
on Jan 13, 2011 at 09:05 UTC ( [id://882058]=note: print w/replies, xml ) | Need Help?? |
Clearly, Perl is trying to interpret as much of the string as a number as it can. For that reason, the following will also work:
So despite the warning that $field is not numerical Perl does try to read the actual numerical value assigned. Not sure if this is any help. Pat
In Section
Seekers of Perl Wisdom
|
|