Subject: | eval {mkpath("/ggg"} ; seems to not set $@ |
I downloaded and instaslled the 2.07 version into perl-5.10.0
I am using File::Path on a gnu/linux Redhat 4 system. I see when I make
a path that is illegal using the eval trapping it doesn't seem to do
what the man page says it does.
Am I missing something?
I hope you can help with this. Thanks.
perl5.10.0 -dw
^d
DB<1> use File::Path
DB<2> eval { mkpath("/y/u/i") };
DB<3> x $@
0 ''
DB<4> mkpath("/y/t/r/e")
mkdir /y: Permission denied at (eval
43)[/tools/wdtgnu/perl-5.8.5/lib/5.8.5/perl5db.pl:620] line 2
DB<5> q
mkdir /y/u/i
mkdir: cannot create directory `/y/u/i': No such file or directory