Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: mkdir usage

by Marshall (Prior)
on Dec 21, 2012 at 06:37 UTC ( #1009877=note: print w/ replies, xml ) Need Help??


in reply to mkdir usage

!/usr/bin/perl -w

# I most often use "-w" on first line the rather than "use warnings;".
# There can be difference later when using other modules.
# In this case, there is no difference.
#

if (! -d abc) { mkdir "abc", "0777" or die "Can't mkdir abc: $!"; }
coud have been:
if (! -d "abc") { mkdir "abc", "0777" or die "Can't mkdir abc: $!"; }


Comment on Re: mkdir usage
Select or Download Code
Re^2: mkdir usage
by Marshall (Prior) on Dec 21, 2012 at 06:54 UTC
    These various quoting gizmos do make a difference.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (13)
As of 2014-07-25 17:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (174 votes), past polls