No way we can help until you provide some code we can run. Start with the following template and add data to reproduce your failure:
use strict; use warnings; my $userinput = 'Blah'; while (my $record = <DATA>) { print "Matched user input against $record" if $record =~ m/$userin +put/g; } __DATA__ Blegh Blah <- that should match blah <- and that won't Yuck
Prints:
Matched user input against Blah <- that should match
In reply to Re: reg ex. problem - 2 variables
by GrandFather
in thread reg ex. problem - 2 variables
by praevalesco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |