Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Parsing multi-line record with varying data

by hippo (Monsignor)
on Aug 09, 2013 at 17:57 UTC ( #1048813=note: print w/replies, xml ) Need Help??


in reply to Parsing multi-line record with varying data

Welcome to the monastery.

To be honest, there's a lot in that script preventing it even from compiling. It might be best if you could just write a new script which simply manages to open the file correctly, read each line and print each line. Once you have that, save it. Then as you modify it at each step to add extra processes, test it, and if it fails, keep refining your addition until it works.

Good luck.

  • Comment on Re: Parsing multi-line record with varying data