So there the regex will only be compiled once instead for each iteration within the grep. See the perlop|perlop manpage for more info.my $match = shift @ARGV; my @matched = grep /^$match$/o, <>;
_________
broquaint
In reply to Re: Re: [perlre] using qr - help needed
by broquaint
in thread [perlre] using qr - help needed
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |