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

still doesn't make any output --does it work for you?
  • Comment on Re^2: Perl:how to find multiple strings

Replies are listed 'Best First'.
Re^3: Perl:how to find multiple strings
by jwkrahn (Abbot) on Apr 09, 2011 at 02:58 UTC

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

      correct but there is 5=8^A

      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!!!