in reply to parsing question

Seems to me you need another regex to test if you've found a line containing the angle brackets:
if ($line =~ /_test(\s+)</) { ### skip this one ### } elif ($line =~ /_test(\s+)/) { print "found\n"; }
HTH.

Replies are listed 'Best First'.
Re: Re: parsing question
by Washie101 (Novice) on Sep 12, 2003 at 12:36 UTC
    I was trying to avoid an if else statement.. Abeigills solution worked a treat...tHanx a million