about summary refs log tree commit
diff options
context:
space:
mode:
authorGraham Barr <gbarr@pobox.com>2002-07-18 14:17:53 +0000
committerGraham Barr <gbarr@pobox.com>2002-07-18 14:17:53 +0000
commitaba9853dbf7b3bac296c6966fe27428f04b52c43 (patch)
tree670d88df60805b24e767cb33abb9ca1598500c53
parentece7ede5ff67fb9f5e830deadb34e3ee19c0f677 (diff)
downloadperl-libnet-aba9853dbf7b3bac296c6966fe27428f04b52c43.tar.gz
Net::Cmd
- Compatability fix for 5.004

-rw-r--r--Net/Cmd.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/Net/Cmd.pm b/Net/Cmd.pm
index 7d61bf9..f89914e 100644
--- a/Net/Cmd.pm
+++ b/Net/Cmd.pm
@@ -1,4 +1,4 @@
-# Net::Cmd.pm $Id: //depot/libnet/Net/Cmd.pm#29 $
+# Net::Cmd.pm $Id: //depot/libnet/Net/Cmd.pm#30 $
 #
 # Copyright (c) 1995-1997 Graham Barr <gbarr@pobox.com>. All rights reserved.
 # This program is free software; you can redistribute it and/or
@@ -21,7 +21,7 @@ BEGIN {
   }
 }
 
-$VERSION = "2.22";
+$VERSION = "2.23";
 @ISA     = qw(Exporter);
 @EXPORT  = qw(CMD_INFO CMD_OK CMD_MORE CMD_REJECT CMD_ERROR CMD_PENDING);
 
@@ -490,7 +490,7 @@ sub TIEHANDLE {
 # end-of-file when the dot is encountered.
 sub READ {
   my $cmd = shift;
-  my (undef,$len,$offset) = @_;
+  my ($len,$offset) = @_[1,2];
   return unless exists ${*$cmd}{'net_cmd_readbuf'};
   my $done = 0;
   while (!$done and length(${*$cmd}{'net_cmd_readbuf'}) < $len) {
@@ -707,6 +707,6 @@ it under the same terms as Perl itself.
 
 =for html <hr>
 
-I<$Id: //depot/libnet/Net/Cmd.pm#29 $>
+I<$Id: //depot/libnet/Net/Cmd.pm#30 $>
 
 =cut