in reply to Re^4: Efficient regex matching with qr//; Can I do better?
in thread Efficient regex matching with qr//; Can I do better?
because then you copy nothing? If this is the case I was fooled by someone else (not in this thread) who said that using each was more efficient than using for/foreach...foreach my $text_id (keys %hash2) { if ($hash2{$text_id} =~ $match) { ... } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Efficient regex matching with qr//; Can I do better?
by ysth (Canon) on Jul 14, 2008 at 05:49 UTC |