in reply to Remove empty element.
This should work better:
my $test="[1,2,3]"; my @var = $test =~ /\d+/g; print Dumper \@var;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Remove empty element.
by vinoth.ree (Monsignor) on Jul 14, 2009 at 05:39 UTC | |
by jwkrahn (Abbot) on Jul 14, 2009 at 06:32 UTC | |
by vinoth.ree (Monsignor) on Jul 14, 2009 at 06:39 UTC | |
by Utilitarian (Vicar) on Jul 14, 2009 at 06:33 UTC | |
by vinoth.ree (Monsignor) on Jul 14, 2009 at 07:06 UTC | |
by Utilitarian (Vicar) on Jul 14, 2009 at 07:32 UTC | |
by vinoth.ree (Monsignor) on Jul 14, 2009 at 07:56 UTC |