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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 332
Download (untitled) / with headers
text/plain 332b
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Content-Disposition: inline
Charset: utf8
Message-Id: <rt-3.6.HEAD-27668-1224539603-939.36615-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 524
Download (untitled) / with headers
text/plain 524b
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Content-Disposition: inline
Charset: utf8
Message-Id: <rt-3.6.HEAD-11120-1225292149-1952.36615-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 475
Download (untitled) / with headers
text/plain 475b
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Content-Disposition: inline
Charset: utf8
Message-Id: <rt-3.6.HEAD-5597-1226334367-695.36615-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 414
Download (untitled) / with headers
text/plain 414b
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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.