If the intention is to read the output file back into your program once tar is finished, you could bypass the filesystem by using a piped-open:
(See the docs for perlfuncopen and perlopentut)
# ..................v open TAR, "tar .... |" or die ...; while( <TAR> { ## do stuff with the tar output }
## do stuff with the tar output could be as simple as print FILE $_;.
See also IO::Pipe.
In reply to Re^3: tar, system() & pipes?
by BrowserUk
in thread tar, system() & pipes?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |