Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Changing a number to a string

by CiceroLove (Monk)
on Jan 26, 2001 at 01:40 UTC ( [id://54370]=note: print w/replies, xml ) Need Help??


in reply to Changing a number to a string

Easiest thing I do is just:
$foo = 0 . "";
This makes Perl kick in with the Right Thing. In converse, you can also
$foo = "2345" + 0;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-28 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found