Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Print 5 lines before and after pattern match from a listby bitingduck (Chaplain) |
on Mar 14, 2015 at 17:01 UTC ( [id://1120065]=note: print w/replies, xml ) | Need Help?? |
The OP and your second update are reminders of why and how it's preferable to avoid C style loops in Perl. Perl's looping tools make C loops easy enough to avoid, and using C loops is an easy way to produce hard to notice but annoying bugs.
In Section
Seekers of Perl Wisdom
|
|