I copied the output into MS Word, and found each line had a "newline" entered, which explains why the output is printing this way... Does PERL have a command to remove formatting of a text file before extracting data?
I changed the code to the last reply, and my output is:
Archive[0]: d:\archives\piarch.012 (500MB, Used: 9.0%)
Start Time: 1-Apr-08 22:02:38
End Time: Current Time
I thought "chomp" would remove the extra whitespace and the result would be printed all on ONE...
I have an archive file that has 300+ archives in this format
____________________________________________________
Archive[0]: d:\archives\piarch.012 (500MB, Used: 9.0%)
PIarcfilehead[$Workfile: piarfile.cxx $ $Revision: 114 $]::
Version: 5 Path: d:\archives\piarch.012...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.