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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://154300]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-24 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found