One nice thing about this is that this is incremental. Data starts streaming immediately without having to store all of the data in memory.my $cmd = "tar -T - -cvz -"; open (TAR, "| $cmd") or die "Cannot run '$cmd': $!"; print TAR map "$_\n", @files; close TAR;
In reply to Re (tilly) 1: Tar File To Web Browser
by tilly
in thread Tar File To Web Browser
by Hrunting
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |