There's more than one way to do things | |
PerlMonks |
Re^3: Numification of stringsby morgon (Priest) |
on Aug 02, 2010 at 18:01 UTC ( [id://852509]=note: print w/replies, xml ) | Need Help?? |
in Perl, everything is a string until used in a numeric context I don't think that is true. In your example you put quotation-marks around the value, so little surprise that you end up with a string... Consider this:
This produces:
As you can see $a is a string "PV", while $b is an int "IV", even thought it was never used in an numeric context.
In Section
Seekers of Perl Wisdom
|
|