in reply to Find a string within a string

you are getting "no match" because you are matching against another variable if ($head=~/$cont/) which should be if ($line =~ /$cont/).


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/