Hi,
I have a list of patterns, for instance,
$pattern = "l\,?454\s*\-?\s*f(oo|ee)t";
The usual way of looking for that pattern in a string, that is,
if ($test =~ /$pattern/){ #do something }
does not work.
How could I tell perl that $pattern is an already formed regular expression ?
Thank you for any help.
Grazia
I have a list of patterns, for instance,
$pattern = "l\,?454\s*\-?\s*f(oo|ee)t";
The usual way of looking for that pattern in a string, that is,
if ($test =~ /$pattern/){ #do something }
does not work.
How could I tell perl that $pattern is an already formed regular expression ?
Thank you for any help.
Grazia