matt wrote:

my @hits = grep /$input/, <DATA>;

quotemeta:

  my @hits = grep /\Q$input/, <DATA>;

--
Ruud

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to