in reply to Archive::Tar->list_archive Properties

use warnings; use strict; use Archive::Tar; use Data::Dumper; $Data::Dumper::Sortkeys=1; my @properties = qw(name size mtime); my $location = "xxx.tar"; my @files = Archive::Tar->list_archive($location, 0, \@properties); print Dumper(\@files);

Several issues:

Replies are listed 'Best First'.
Re^2: Archive::Tar->list_archive Properties
by hdb (Monsignor) on Mar 10, 2015 at 13:50 UTC

    Thanks for your comment on the return type, this makes much more sense!

Re^2: Archive::Tar->list_archive Properties
by sirhalos (Sexton) on Mar 10, 2015 at 15:40 UTC
    Thank you so much. I knew I must be close to the answer. This helped explain it.