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

Re: "-e" and "-d" switches

by brian_d_foy (Abbot)
on Mar 24, 2005 at 13:49 UTC ( #442043=note: print w/replies, xml ) Need Help??


in reply to "-e" and "-d" switches

These are the file test operators (which are different from the command line switches that look the same). They're documented in perlfunc.

In short, -d tests if its argument is a directory, and -e tests if its argument exists.

In your code, it looks like the if() ensures that there is a true value for those hash keys and that the file or directory does not already exist. The next part probably creates them.

--
brian d foy <bdfoy@cpan.org>

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2022-01-28 06:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (73 votes). Check out past polls.

    Notices?