my $cmd = system("zcat -l /path/to/.gz/files"); print Dumper($cmd);