Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: help please

by Revelation (Deacon)
on Mar 26, 2002 at 01:58 UTC ( #154300=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ( -d $dirname)
    {
    ...
    
    blah blah blah blah blah
    
  2. or download this
    opendir(DIR, $dirname) || die "can't opendir $dirname: $!";
    my @directory = readdir(DIR);
    my @filenames = grep { -f "$dirname/$_" } @directory;  # Either use th
    +e array @directory, or rewinddir(DIR) here, and grep readdir(DIR) twi
    +ce.
    my @directories = grep {-d "$some_dir/$_" &&  !/^\.$/ && !/^\..$/} @di
    +rectory;
    closedir DIR;  
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (17)
As of 2015-07-02 10:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (33 votes), past polls