in reply to Phantom directories created using mkdir
Hi ,
The $scalar , is it defined using a my (should be) you should use like
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
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Phantom directories created using mkdir
by jonnyfolk (Vicar) on Feb 19, 2003 at 17:08 UTC |
In Section
Seekers of Perl Wisdom