Subject: | Device::Modem-1.53 patch |
Date: | Fri, 27 May 2011 19:05:45 +0800 |
To: | bug-Device-Modem [...] rt.cpan.org |
From: | Wilson Santos <wilson [...] xyber.ph> |
Hi,
Device::Modem issues a warning when checking if the port is disconnected,
which makes debugging difficult.
Attached is a patch to Modem.pm that first checks if the variable is defined
to eliminate the unnecessary warning.
Nice work on the module.
thanks!
560c560
< if (defined $self->{'CONNECTED'} && $self->{'CONNECTED'} == 1 &&
# We were connected
---
Show quoted text
> if ($self->{'CONNECTED'} == 1 && # We were connected
--
Message body is not shown because sender requested not to inline it.