Splitting a string into parts. There is a function for that called split
$string=~s/\[(.*)\]/$1/; #removing [] @numbers= split /,/,$string;
In reply to Re: string to array
by jethro
in thread string to array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |