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

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

Thread Previous | Thread Next
From:
Jonathan Rockway
Date:
May 11, 2008 01:22
Subject:
Re: File::Path::mkpath() incompatiblity in perl-5.10
Message ID:
87r6c92qth.fsf@bar.jrock.us
* On Wed, May 07 2008, 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.

Very interesting!  For some reason I've had a directory called "436"
showing up in my homedir from time to time.  For some reason, I
suspected Gnus... but maybe it's something perlish.  I upgraded to 5.10
and started using Gnus at about the same time, so it's possible that
Perl is the cause but my brain assumed Perl wouldn't do something like
this :)

Anyway, thanks for pointing this out.  My understanding of the universe
is slightly more complete :)

Regards,
Jonathan Rockway

-- 
print just => another => perl => hacker => if $,=$"

Thread Previous | Thread Next


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