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.
#
# 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.
#
coud have been:if (! -d abc) { mkdir "abc", "0777" or die "Can't mkdir abc: $!"; }
if (! -d "abc") { mkdir "abc", "0777" or die "Can't mkdir abc: $!"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: mkdir usage
by Marshall (Canon) on Dec 21, 2012 at 06:54 UTC |
In Section
Seekers of Perl Wisdom