http://www.perlmonks.org?node_id=54370


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;