in reply to Re: compressing files
in thread compressing files
Both of those are buggy and unsafe. The first even looses tar's error code (and the second can loose tar's error code). Use the list form of system to avoid those problems.
system('tar', '-cvf', 'logfiles.tar', @srcfiles);
Archive::Tar is still better. ( Using a module is usually the way to go, but it might not be the case here. See replies. )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: compressing files
by Corion (Patriarch) on Nov 16, 2006 at 17:08 UTC |