in reply to Re: Re: [perlre] using qr - help needed
in thread [perlre] using qr - help needed

That can be done with qr// as well though.
my $rx = qr/^@{[shift @ARGV]}$/; my @match = grep /$rx/, <>;
qr// also is much less likely to be used mistakenly than /o and much easier to spot when it is. /o should be considered a relic from pre-qr// times that has few if any uses anymore.

Makeshifts last the longest.