You may try to use \Q metacharacter to disable other metacharacters which can occure in $manuID variable and affect to matching
if ( $manuCode =~ /\Q$manuID/ ) {
See perldoc perlre
In reply to Re: Regex problem
by ccn
in thread Regex problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |