about summary refs log tree commit
diff options
context:
space:
mode:
authorGraham Barr <gbarr@pobox.com>1998-10-21 01:55:08 +0000
committerGraham Barr <gbarr@pobox.com>1998-10-21 01:55:08 +0000
commit7411c62eab0e6a48bca8460c856cb1b8a63a51a9 (patch)
tree3bc6d78265c97db0d435814e4534df61583aa71b
parent9c188712056931197284a2c1a8a3623d335d3f39 (diff)
downloadperl-libnet-7411c62eab0e6a48bca8460c856cb1b8a63a51a9.tar.gz
Fix typo in Net::Cmd
-rw-r--r--Net/Cmd.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Net/Cmd.pm b/Net/Cmd.pm
index 8e414ef..4ec3c5f 100644
--- a/Net/Cmd.pm
+++ b/Net/Cmd.pm
@@ -210,7 +210,7 @@ sub getline
     if scalar(@{${*$cmd}{'net_cmd_lines'}});
 
  my $partial = defined(${*$cmd}{'net_cmd_partial'})
-                ? ${*$cmd}{'net_cmd_partial'} : || "";
+                ? ${*$cmd}{'net_cmd_partial'} : "";
  my $fd = fileno($cmd);
 
  return undef
@@ -358,7 +358,7 @@ sub datasend
  my $len = length($line) - 1;
  my $offset = 1;
  my $win = "";
- vec($win,$fd,1) = 1;
+ vec($win,fileno($cmd),1) = 1;
  my $timeout = $cmd->timeout || undef;
 
  while($len)