in reply to Re^2: Improve foreach with help of map?
in thread Improve foreach with help of map?
my ($dummy, $dummy, $result) = ...;
should be
my (undef, undef, $result) = ...;
There's also
my $result = ( map /(\d\d \w\w\w \d\d\d\d)/, split /\n+/, $content )[2];
But really, you want the faster and more accurate
my ($result) = $content =~ /End Date.*?(\d\d \w\w\w \d\d\d\d)/s;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Improve foreach with help of map?
by mickep76 (Beadle) on Oct 09, 2009 at 15:27 UTC |