Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Getting a simple directory listing

by ZZamboni (Curate)
on May 01, 2001 at 04:09 UTC ( [id://76828]=note: print w/replies, xml ) Need Help??


in reply to Getting a simple directory listing

The problem is that you are opening the directory "desktop" for reading, but you are testing each entry under the current directory. Changing the following line makes it work:
print if (-d "./desktop/$_");

--ZZamboni

Replies are listed 'Best First'.
Getting a simple directory listing
by Stamp_Guy (Monk) on May 01, 2001 at 04:41 UTC
    Thanks everyone. ZZamboni's suggestion worked perfectly.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found