you are getting "no match" because you are matching against another variable if ($head=~/$cont/) which should be if ($line =~ /$cont/).
In reply to Re: Find a string within a string
by Chady
in thread Find a string within a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |