Skip Menu |

This queue is for tickets about the POE-Component-IRC CPAN distribution.

Report information
The Basics
Id: 70605
Status: resolved
Priority: 0/
Queue: POE-Component-IRC

Owner: Nobody in particular
Requestors: dmacks [...]

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

Subject: "uninitialized value" warning
Date: Tue, 30 Aug 2011 12:57:20 -0400
To: bug-POE-Component-IRC [...]
From: "Daniel Macks" <dmacks [...]>
Download (untitled) / with headers
text/plain 1004b
Running self-tests on POE-Component-IRC 6.70 on OS X 10.6 using perl 5.10.0 (part of the base system from Apple) I get a bunch of warnings: S_353 call on self failed: Use of uninitialized value $status in length at /sw/ line 472. The warning appears to indicate a logic flaw in that .pm:         my $status;         if ( ($status) = $nick =~ /^($search+)/ ) {            $nick =~ s/^($search+)//;         } [...]         $status      = '' if !length $status;   I assume the intent of that last line is to make sure $status is defined. That's the only case I can think of where a variable with zero length is *not* the null-string already). But that's exactly the case that triggers the warning too. Cleaner to test for that problematic case directly:         $status      = '' if !defined $status; dan -- Daniel Macks
Download (untitled) / with headers
text/plain 226b
Heh, I had actually fixed that but hadn't pushed the commit. Thanks for the heads up, anyway. :) The fix will be in the next release.

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

Please report any issues with to