Recent content by Mechanize.pm

  1. M

    How do I parse a file in Perl for a string?

    Uhhh well first you could read the file handle into an array. @array = <FILE>; and then just make a variable equal to 1 if the string is found in each element, and do nothing if it isn't. If the variable equals 1, that means there was a match. I kind of forgot how to use the match operator...
  2. M

    How do I parse a file in Perl for a string?

    Uhhh well first you could read the file handle into an array. @array = <FILE>; and then just make a variable equal to 1 if the string is found in each element, and do nothing if it isn't. If the variable equals 1, that means there was a match. I kind of forgot how to use the match operator...
Back
Top