See also:use warnings; use strict; use Data::Dumper; my $str = '"[1,2]"'; my @nums = $str =~ /(\d+)/g; print Dumper(\@nums); __END__ $VAR1 = [ '1', '2' ];
In reply to Re: string to array
by toolic
in thread string to array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |