in reply to
Changing a number to a string
Easiest thing I do is just:
$foo = 0 . "";
[download]
This makes Perl kick in with the Right Thing. In converse, you can also
$foo = "2345" + 0;
[download]
Comment on
Re: Changing a number to a string
Select
or
Download
Code
In Section
Seekers of Perl Wisdom