Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: restoring special variable defaults

by Berik (Sexton)
on Feb 07, 2004 at 01:16 UTC ( [id://327258]=note: print w/replies, xml ) Need Help??


in reply to restoring special variable defaults

For the "0." thing, if you are litteraly using "0." (with the quotes), you _are_ defining a string.

You could either define it as a number (Could even use 0. for that in perl altough I advise you to just use 0), or convert your value explicitly to a number: "0." + 0 (or int( "0." ) to make it an integer).

This will make sure that -whatever you are defining- contains the number '0' at the end.
  • Comment on Re: restoring special variable defaults

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-25 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found