diff options
Diffstat (limited to 'Net/Cmd.pm')
-rw-r--r-- | Net/Cmd.pm | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,7 +13,7 @@ use strict; use vars qw(@ISA @EXPORT $VERSION); use Carp; -$VERSION = "2.10"; +$VERSION = "2.11"; @ISA = qw(Exporter); @EXPORT = qw(CMD_INFO CMD_OK CMD_MORE CMD_REJECT CMD_ERROR CMD_PENDING); @@ -314,7 +314,7 @@ sub read_until_dot while(1) { - my $str = $cmd->getline(); + my $str = $cmd->getline() or return undef; $cmd->debug_print(0,$str) if ($cmd->debug & 4); |