in reply to what error does this signify?
If means that your $mappingfield variable contains a value with the regex quantifier metacharacter '*' at the beginning - infact it appears that the variable only contains '**'. This is the same form of message you get if you do:
If you intend to use metacharacters in the $mapping field then you should either use quotemeta prior to interpolating it into the pattern or shoould use \Q directive to suppress the interpretation of the metacharacters in the expression.perl -e'$foo='babab'; $foo =~ /*aba*/' Quantifier follows nothing in regex; marked by <-- HERE in m/* <-- HER +E aba*/ at -e line 1.
/J\
|
|---|