Subject: | uninitialized value bug |
Date: | Thu, 18 Feb 2010 13:06:01 -0600 |
To: | bug-HTTP-Server-Simple-PSGI [...] rt.cpan.org |
From: | Gregory Siems <Gregory.Siems [...] state.mn.us> |
Error:
Use of uninitialized value $line in length
at /opt/perl/current/lib/site_perl/5.10.1/HTTP/Server/Simple/PSGI.pm
line 137.
Proposed solution is to ensure that $line is defined before checking
it's length:
$ diff old-PSGI.pm new-PSGI.pm
137c137
< $cb->($line) if length $line;
---
Show quoted text
> $cb->($line) if ($line && length $line);
Thanks,
--greg