Problems? Is your data what you think it is? | |
PerlMonks |
Re: Text File Section Extractorby telemachus (Friar) |
on Apr 10, 2009 at 02:05 UTC ( [id://756737]=note: print w/replies, xml ) | Need Help?? |
I second toolic's suggestion of range operators as a way to simplify the extraction itself. Two other small things: first, check out the 3 argument form of open with lexical filehandles. You get the general benefits of lexical variables, and these filehandles are far easier to pass around. Second, autodie saves you from a lot of boilerplate code with open and close (to name just two):
In Section
Cool Uses for Perl
|
|