Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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
Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2015-10-04 20:41 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (104 votes), past polls