in reply to eval routines for faster regexp: how-to...
And you might be interested in compiled regexes:@results = $fast->(); # or @results = &$fast;
$re = qr/(\w+)\s+(\w+)/; # ... while (<>) { push @res, /$re/; }
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|