Skip to content

Commit

Permalink
"exists $ARGV[0]" does not work with perl < 5.6.0. use "defined $ARGV…
Browse files Browse the repository at this point in the history
…[0]".
  • Loading branch information
LupeChristoph committed Aug 6, 2005
1 parent 1c58de6 commit 1c3bd64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/node.d.sunos/netstat.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@

use strict;

if (exists $ARGV[0] and $ARGV[0] eq "autoconf") {
if (defined $ARGV[0] and $ARGV[0] eq "autoconf") {
print "yes\n";
exit;
} elsif (exists $ARGV[0] and $ARGV[0] eq "config") {
} elsif (defined $ARGV[0] and $ARGV[0] eq "config") {
print "graph_title Netstat\n";
print "graph_args -l 0 --base 1000\n";
print "graph_vlabel active connections per \${graph_period}\n";
Expand Down

0 comments on commit 1c3bd64

Please sign in to comment.