[ale] String -> Number
Fletch
fletch at phydeaux.org
Mon Mar 17 14:58:47 EST 2003
Good grief no you don't need that. That apparently came from the Infrequently
Asked Questions, which if you note carefuly the date in the RCS stamp:
perliaq - infrequently asked questions about Perl
($Date: 1999/04/01 04:23:40 $)
^^^^^ April 1st.
Perl will pretty much do the right thing and treat a scalar like a
number if you use it like a number and like a string when you use it
like a string. If you really want to force a numeric conversion, just
add 0 to the value.
perl -le '$a = qq{1234\cM\cJ};print "|$a|"; print "|", 0+$a, "|"'
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
770 294-0820 (m) | scary questions." -- Jules =(___)=
| U
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list