The stupid question is the question not asked | |
PerlMonks |
Re^2: Passing variable to if statementby Jim (Curate) |
on Jul 16, 2014 at 23:31 UTC ( [id://1093960]=note: print w/replies, xml ) | Need Help?? |
I removed the "once" modifier and now the code works perfectly. I don't think the code is working perfectly. If any of the names in array.txt have regular expression metacharacters in them, then the regular expression pattern you're using is unlikely to match the text as you expect it to. See perldoc -f quotemeta.
In Section
Seekers of Perl Wisdom
|
|