- or download this
use strict;
use warnings;
...
@match = grep { length } map { $1 if /(2)/ } 0..9;
print scalar @match, "\n"; # is 1
- or download this
my ($val) = map { /^\*\s\(?([^\)]+)\)?/ } @GET_STRING;
- or download this
my $val;
for (0..9) {
...
last;
}
}