Skip Menu |

This queue is for tickets about the File-Path CPAN distribution.

Report information
The Basics
Id: 36615
Status: resolved
Priority: 0/
Queue: File-Path

People
Owner: dland [...] cpan.org
Requestors: dagolden [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.04
Fixed in: (no value)



Subject: uninitialized value $path in length
For some reason, running minicpan, I get lots of these warnings from my cron jobs: Use of uninitialized value $path in length at /home/david/perl/5.10.0/lib/5.10.0/File/Path.pm line 97 Since that line is just "next unless length($path)" it seems like it should be changed to "next unless defined($path) && length($path)" -- David
On Tue Jun 10 07:31:54 2008, DAGOLDEN wrote: Show quoted text
> For some reason, running minicpan, I get lots of these warnings from my > cron jobs: > > Use of uninitialized value $path in length at > /home/david/perl/5.10.0/lib/5.10.0/File/Path.pm line 97 > > Since that line is just "next unless length($path)" it seems like it > should be changed to "next unless defined($path) && length($path)" > > -- David
Hello, thanks for the report. I've folded this change into my repository, and a new release will be out soon. Thanks, David
On Tue Jun 10 07:31:54 2008, DAGOLDEN wrote: Show quoted text
> For some reason, running minicpan, I get lots of these warnings from my > cron jobs: > > Use of uninitialized value $path in length at > /home/david/perl/5.10.0/lib/5.10.0/File/Path.pm line 97 > > Since that line is just "next unless length($path)" it seems like it > should be changed to "next unless defined($path) && length($path)" > > -- David
Fixed in 2.06_07; soon to be released as 2.07. Thanks for the report, David
On Tue Jun 10 07:31:54 2008, DAGOLDEN wrote: Show quoted text
> For some reason, running minicpan, I get lots of these warnings from my > cron jobs: > > Use of uninitialized value $path in length at > /home/david/perl/5.10.0/lib/5.10.0/File/Path.pm line 97 > > Since that line is just "next unless length($path)" it seems like it > should be changed to "next unless defined($path) && length($path)"
Fixed in 2.07. Thanks, David