Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: 1 vs "1"

by riffraff (Pilgrim)
on Sep 13, 2001 at 00:27 UTC ( [id://112012]=note: print w/replies, xml ) Need Help??


in reply to 1 vs "1"

You could also force the string to be looked at as a string, by, for example, prepending a character in front of it:

$a=1; func($a); # a number func("x$a"); # now a string

riffraff

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-25 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found