Help for this page

Select Code to Download


  1. or download this
    my %filenames =();
    foreach( <post*.*> ) {
        $filenames{$_} = -M $_;
    }
    
  2. or download this
    my @sorted_keys = sort { $filenames{$a} <=> $filenames{$b}} keys %file
    +names;
    
  3. or download this
    foreach my $filename ( @filenames ) {
        # create an ANONYMOUS array (basically a reference to an array)
        my $record = [ $filename, -M $filename ];
        push @filesanddates, $record;
    }