Keep It Simple, Stupid | |
PerlMonks |
Re: Text filesby dingus (Friar) |
on Dec 04, 2002 at 08:13 UTC ( [id://217431]=note: print w/replies, xml ) | Need Help?? |
This little snippet will do what you want You may want to look at File::Find (see Beginners guide to File::Find) for a more elegant way to do this. And there is probably a better way to search for things in the file, such as slurping the whole thing into a single variable.
Dingus Enter any 47-digit prime number to continue.
In Section
Seekers of Perl Wisdom
|
|