![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re^4: header footerby graff (Chancellor) |
on Mar 04, 2014 at 23:34 UTC ( #1077012=note: print w/replies, xml ) | Need Help?? |
… would this not work?
Translate all that into perl code and see. If it doesn't work, post the perl code; if you don't know how to translate that, let us know where you're stuck.
I think the code posted above by kenosis ( On the first read, it'll just get "HDR", and output nothing. On each subsequent read, it will get a whole record (including the next occurrence of the string "HDR"), skip the first 47 characters (the rest of the header string), trim off the "FTR" and following text, and output just the remaining record content (including whatever line breaks it contains).
In Section
Seekers of Perl Wisdom
|
|