in reply to making an array out of a string or integer

Yes sure use split()
$val = 12345; @valary = split('', $val); foreach $item (@valary) { print $item,qq(\n); }
The '' parameter in split() says split on nothing
Hope that helps