Perl-Sensitive Sunglasses | |
PerlMonks |
Re: how can i search a text file for a string and print every occurence of that stringby Hofmator (Curate) |
on Jul 20, 2001 at 16:44 UTC ( [id://98391]=note: print w/replies, xml ) | Need Help?? |
I normally wouldn't program that by hand. Depending on your operating system I would use a grep variant (on *nix) or find/findstr (on Win). Alternatively you can use the equivalent from the Perl Power Tools . --Hofmator
In Section
Seekers of Perl Wisdom
|
|