Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Re: Find and Print Directory Names

by ehdonhon (Curate)
on Jul 07, 2002 at 19:04 UTC ( [id://180011]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Find and Print Directory Names
in thread s and replace

The reason it only prints out one directory is that you are not pushing the results of your recursive calls to finddir into the @direct array.

next unless ( -d "$root$file" ); $dir = "$root$file"; $dir =~ s/^\Q$config{home}$user{site_id}\E//; push(@direct, $dir); push(@direct, finddir("$root$file"));

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-03-19 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found