We don't bite newbies here... much | |
PerlMonks |
Is it possible to insert a record after line 5 that appears on line 10?by dirtdog (Monk) |
on Jun 23, 2010 at 20:22 UTC ( [id://846166]=perlquestion: print w/replies, xml ) | Need Help?? |
dirtdog has asked for the wisdom of the Perl Monks concerning the following question: Oh ye Wise one's I'm trying to figure out a way to loop thru a file looking for a record that begins with :35B: but only if it comes after(does not have to be immediately after) a :16R:SECMOVE record. Once found, i have to copy the :35B: record just under the above and nearest :17B: record which i've already passed.
The above code is what i have so far...i just can't figure out how i'm going to print out a record after line 5 that I captured from line 10! hypothetically speaking Any help would be mucho appreciated Thanks
Back to
Seekers of Perl Wisdom
|
|