No such thing as a small change | |
PerlMonks |
Re^3: Text filer and assignby johngg (Canon) |
on Oct 06, 2015 at 13:23 UTC ( [id://1143923]=note: print w/replies, xml ) | Need Help?? |
I see that you append to the pv.txt1 file which means more lines to parse every time you run the script; is this actually intended? Unless you want to keep the output of pvscan hanging around you can open a file handle directly on piped commands. Something like:-
You can then read the command output line by line just as if it was a file on disk. I hope this is helpful. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|