in reply to Re: Pattern matching and setting the match to a variable
in thread Pattern matching and setting the match to a variable

THat worked perfectly!
{print "$_\n" if /\Q$pattern/;
Thanks to all who replied.