Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: reading files in directory

by Riales (Hermit)
on Mar 20, 2012 at 00:21 UTC ( [id://960501]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @filenames;
    push @filenames, $_ while (<STDIN>);
    ...
    
    use Data::Dumper;
    print Dumper(@filenames);
    
  2. or download this
    ls | my_script.pl
    
  3. or download this
    my %hash; # Declare your hash.
    
    $hash{$key} = $sequence; # Assign $sequence to the hash with key $key.
    
    my $sequence_im_looking_for = $hash{$key}; # Get the sequence by looki
    +ng it up with its key $key.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-25 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found