Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: File extraction 2nd tryby Athanasius (Archbishop) |
on Jan 19, 2016 at 04:16 UTC ( [id://1153055]=note: print w/replies, xml ) | Need Help?? |
Hello knight.of.ni, tangent has identified the logic error in your code, and AnomalousMonk has outlined a better approach. I just want to point out that if you exit from the while loop you will never reach the close statements after the loop ends. Use last instead. A few other points:
Hope that helps,
In Section
Seekers of Perl Wisdom
|
|