Someone please tell me why this script fails returning "ERROR: NOCOL C/T ENG".
"C/T ENG" doesn't exist in $titles after where "OPTIONS" was found. Why are you using the g modifier and pos? All you need is
foreach my $col ( @cols ) { if ( $titles !~ /\Q$col/ ) say "ERROR: NOCOL $col"; } }
In reply to Re: Reseting pos()
by ikegami
in thread Reseting pos()
by EvanCarroll
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |