Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 meditating upon the Monastery: (7)
As of 2015-07-04 02:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls