in reply to Re^2: Getting lines in a file between two patterns
in thread Getting lines in a file between two patterns
You have your file-opening code inside the loop through each line. It should be moved outside, so the file is only opened once instead of once for every line (and overwritten each time), and also would be better written as:
See open.open my $OUTPUT, '>', $outputfile or die "File open fail: $!\n";
As far as your data foramtting question, you probably should use a module for reading your Windows file format, maybe Win32::OLE? (disclaimer: I haven't programmed with Windows for years; search CPAN and you'll almost certainly find what you need if that's not it.)
Hope this helps!
|
|---|