in reply to
grep with perl characters
Sounds like you want to quote metacharacters in your regular expression, so that they're not treated as meta:
@found = grep { /^\Q$handle\E/ } @notes;
[download]
The \Q and \E should do it for you. More in
perlre
.
Comment on
Re: grep with perl characters
Download
Code
In Section
Seekers of Perl Wisdom