Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Dumb or Cursed?

by ides (Deacon)
on May 23, 2002 at 18:59 UTC ( #168876=note: print w/replies, xml ) Need Help??


in reply to Problems with -filetest on readdir results

When using file test operators like -d you need to give it the full path to the file. You might try for instance
print "$_\n" if ( -d "$path/$_" );

-----------------------------------
Frank Wiles <frank@wiles.org>
http://frank.wiles.org

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2022-05-25 20:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?