in reply to Creating Tarballs in a perl scripts

I just tested this and it grabs hidden files.
#!/usr/bin/perl use warnings; use strict; my $dir = '.'; system ('tar', '-zcvf', 'my_tarball.tgz', $dir);

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^2: Creating Tarballs in a perl scripts
by stevieb (Canon) on Jun 11, 2012 at 17:29 UTC

    Using zentara's code, I also confirm it working on Ubuntu 11.10, Ubuntu 12.04 and FreeBSD 9.0.