Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Phantom directories created using mkdir

by OM_Zen (Scribe)
on Feb 19, 2003 at 16:39 UTC ( #236702=note: print w/ replies, xml ) Need Help??


in reply to Phantom directories created using mkdir

Hi ,

The $scalar , is it defined using a my (should be) you should use like

if ($scalar ne ""){ $dir_name = "/path/$scalar"; mkdir $dir_name, 0777 unless -d $dir_name; }else{ # print " the error and exit $! \n"; }


As I have only this part of your total post , I guess you are checking for the definition rather than the value of the scalar variable


Comment on Re: Phantom directories created using mkdir
Download Code
Re: Re: Phantom directories created using mkdir
by jonnyfolk (Vicar) on Feb 19, 2003 at 17:08 UTC
    Yes, absolutely. I can see that what you are suggesting is better than what I had and will incorporate it. thanks for your help.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2014-11-25 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (160 votes), past polls