in reply to Re: Map function slowing down program
in thread Map function slowing down program
>perl -wMstrict -le "my @strs = qw( ab cd ef gh ); my @rxs = map qr{ \Q$_\E }xms, @strs; my $line = 'xxabyyefzzghhh'; my $cnt = grep $line =~ $_, @rxs; print $cnt; " 3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Map function slowing down program
by jwkrahn (Abbot) on Nov 17, 2008 at 03:32 UTC | |
by ikegami (Patriarch) on Nov 17, 2008 at 03:45 UTC |