> I have a directory "Abs" with a file "abc" in it.
> I am using rmtree to rm this dir as follows
> 
> use File::Path;
> rmtree("Abs",1,1) or die "dir not del";
> print "done";
> ----
> 
> The output is
> 
> unlink ../htdocs/store/newpages/Abstract/abc
> ----
> 
> It neither prints the die statement nor the done - ofcourse 
> it doesn't 
> actually delete the file and the dir at all.

You might want to try putting a hard return in your die to make sure it
flushes (even if that's not the problem, it's a good habit), and also
checking the actual error message, like so:

my $dir = 'Abs';
rmtree("$dir",1,1) or die "couldn't rmtree [$dir]: $!\n";

HTH,

 -dave



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to