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

Re: mkdir usage

by Marshall (Monsignor)
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: $!"; }

Replies are listed 'Best First'.
Re^2: mkdir usage
by Marshall (Monsignor) 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 cooling their heels in the Monastery: (2)
As of 2016-08-30 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (410 votes). Check out past polls.