in reply to what error does this signify?
Quantifier follows nothing in regex; marked by <-- HERE in m/* <-- HER +E */ at gn gxsmig_mapextver0.1.pl
That error message means exactly what it says. There is a quantifier (in your case *) that follows nothing, that means it is at the start of the regular expression. A regular expression cannot start with *, ? or +.
My guess is that $mappingfield starts with *. Maybe you want to read perlre and use the \Q and \E escapes to properly quote $mappingfield for use in a regular expression:
if ($line2 =~ /\Q$mappingfield\E/) { ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: what error does this signify?
by deepa (Initiate) on May 17, 2006 at 11:52 UTC |