- or download this
push @results_renamed,
{
...
mtime => stat($_)->mtime(),
bytes => stat($_)->size(),
};
- or download this
@results_renamed
= sort { $a->{mtime} <=> $b->{mtime} } @results_renamed;
- or download this
my @temp;
my $post = sub {
push @temp, { filename => $_, mtime => stat($_)->mtime } if /USB/
};
find( $post, 'c:/test' );
- or download this
sub find_usb {
my @temp;
...
find( $post, 'c:/test' );
return @temp;
}