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. )
In reply to Re^2: compressing files
by ikegami
in thread compressing files
by mantra2006
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |