Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Warning-free numerification of a string

by varian (Chaplain)
on Aug 08, 2007 at 22:09 UTC ( [id://631426]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Warning-free numerification of a string
in thread Warning-free numerification of a string

Not sneaky at all, just contain the no-warnings to where you need it and the requirement is crystal-clear:
{ no warnings 'numeric'; $val1 = $val1+0; # force numeric }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://631426]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-20 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found