in reply to Regex problem

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

Replies are listed 'Best First'.
Re^2: Regex problem
by Anonymous Monk on Dec 15, 2008 at 20:13 UTC
    I had tried that before and I tried it again and it doesn't help, the codes are only 3 alphanumeric characters. Also i noticed in my code I forgot to add a line. I did a substitute to remove newlines and tabs from the variables with the csv.