I think you want to use backticks:
system("tar -cvf logfiles.tar `cat $filename`");
But I'm not sure why you aren't using:
system("tar -cvf logfiles.tar @srcfiles");
That removes the need for the file.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: compressing files
by davorg
in thread compressing files
by mantra2006
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |