develooper Front page | perl.perl5.porters | Postings from May 2008

Re: File::Path::mkpath() incompatiblity in perl-5.10

Thread Previous
From:
David Landgren
Date:
May 7, 2008 14:51
Subject:
Re: File::Path::mkpath() incompatiblity in perl-5.10
Message ID:
48222463.1070702@landgren.net
Gisle Aas wrote:
> I had some production code using File::Path::mkpath() that started to 
> misbehave after upgrading to perl-5.10.  The bug is demonstrated with 
> the following script:
> 
>   #!/usr/bin/perl
>   use File::Path qw(mkpath);
>   print "$File::Path::VERSION\n";
>   mkpath("foo", !shift, 0755);
>   rmdir("foo");
> 
> This script will create a directory called "493" in the current 
> directory if invoked with 1 as argument.  This did not happen with 
> perl-5.8 and earlier.

That's my fault. I'll see if I can make it figure out how to do the 
right thing. In the meantime,

   mkpath(["foo"], !shift, 0755);

will get you through the night.

Sorry about that,
David

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About