Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Regex and perl directories question

by growlf (Pilgrim)
on Nov 20, 2001 at 04:38 UTC ( [id://126435]=note: print w/replies, xml ) Need Help??


in reply to Regex and perl directories question

Try something more like this:
#!/usr/bin/perl -w my @dirs; my $sth; my $gt; my $dir ='/home/vendors/test/public_html'; opendir(D,$dir); @dirs=grep( -d "$dir/$_" , readdir(D)) ; closedir D; foreach (sort @dirs) {print "$_\n"};


*G*

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (None)
    As of 2024-04-25 00:02 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found