Thanx, Val$line='123: ABC/1.0/VAL 111:222:333:444'; $cont='ABC/1.0/VAL 111:222:333:444'; if ($line=~/$cont/) { print "We have a match\n"; } else { print "No match\n"; }
In reply to Re: Correction to 1st -Find a string within a string
by Anonymous Monk
in thread Find a string within a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |