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

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

Thread Previous | Thread Next
David Landgren
May 14, 2008 14:53
Re: File::Path::mkpath() incompatiblity in perl-5.10
Message ID:
Jonathan Rockway wrote:
> * 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 :)

Hmm. Sorry about that. I'm working on a more robust approach that will 
put an end to all this.


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