Help for this page

Select Code to Download


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