Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Passing Array of Arrays

by arturo (Vicar)
on Mar 11, 2003 at 13:07 UTC ( [id://242007]=note: print w/replies, xml ) Need Help??

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;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://242007]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-26 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found