http://www.perlmonks.org?node_id=1009877


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: $!"; }