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

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

Thread Previous | Thread Next
Jonathan Rockway
May 11, 2008 01:22
Re: File::Path::mkpath() incompatiblity in perl-5.10
Message ID:
* 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 :)

Jonathan Rockway

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

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About