in reply to Re^2: Perl:how to find multiple strings
in thread Perl:how to find multiple strings

It apparently doesn't work because the string "5=8(" is not in any of the lines.

  • Comment on Re^3: Perl:how to find multiple strings

Replies are listed 'Best First'.
Re^4: Perl:how to find multiple strings
by auto_w (Novice) on Apr 11, 2011 at 14:28 UTC
    correct but there is 5=8^A
Re^4: Perl:how to find multiple strings
by auto_w (Novice) on Apr 14, 2011 at 11:27 UTC

    Now it works -i just changed to --open (my $HAN, $logg) question --how to add else statement if match not found, i tried adding else but that didn't work out for me ... So far that is the best code i've seen so compact and powerfull---WELL DONE!!!! i wasn't aware of next function...and your ARGV is so nice!!!