Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

re : Problems with -filetest on readdir results

by boo_radley (Parson)
on May 23, 2002 at 19:01 UTC ( #168877=note: print w/replies, xml ) Need Help??


in reply to Problems with -filetest on readdir results

readdir doesn't prepend the path information, you need to do it yourself.
something like :
print "$_ \n" if (-d $path.$_);
should do you. This assumes that $path has the appropriate directory separator on the end.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2022-05-29 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?