"be consistent" | |
PerlMonks |
Re^3: Printing line before matching expressionby Anonymous Monk |
on Sep 11, 2013 at 07:54 UTC ( [id://1053423]=note: print w/replies, xml ) | Need Help?? |
compared to other proposals is the pushing and shifting which involves a lot of copying data around. Sure it doesn't :) This can be done more easily by cycling through the buffer using the modulo operator on the line number of the data. If all the data you want is at the end
In Section
Seekers of Perl Wisdom
|
|