I don't recommend doing this (other answers were safer) but for the sake of completeness:
perl -le 'my $aref = eval "[1,2]"; print join("+", @{$aref})' 1+2
In reply to Re: string to array
by Your Mother
in thread string to array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |