Quantcast
Channel: Linux Apache MySQL PHP Tips » perl
Viewing all articles
Browse latest Browse all 20

How to write a perl script to search an entire file for the occurrence of a string?

$
0
0

I need a perl script to check for the occurrence of a string (say "Success") and output "Found" if Success occurs in the file or else output "Not found" if "Success" is not found.


Viewing all articles
Browse latest Browse all 20

Trending Articles