The '' parameter in split() says split on nothing$val = 12345; @valary = split('', $val); foreach $item (@valary) { print $item,qq(\n); }
In reply to Re: making an array out of a string or integer
by ColtsFoot
in thread making an array out of a string or integer
by Seshouan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |