in reply to Perl script to Parse a file for a string
I guess I might try something like similar to the following, given your example
Then you can simply change the logic, depending upon the results you desire. You might even want to turn the entire routine into a sub -- OO people would call it an Object. :)my $string = qw(abc) | undef; # for illustration purposes only unless $string ne "" { print "found STRING"; } else { print "string NOT found";}
All the best.
--Chris
¡λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH
|
|---|