Re: SNMP module to query net-snmp
- From: "Dr.Ruud" <rvtol+news@xxxxxxxxxxxx>
- Date: Thu, 31 Aug 2006 17:31:14 +0200
milaus schreef:
my $host = $ARGV[0];
my $community = $ARGV[1];
my $OID = $ARGV[2];
my $porta = $ARGV[3];
Lined-up code is clearer:
my $host = $ARGV[0] ;
my $community = $ARGV[1] ;
my $OID = $ARGV[2] ;
my $porta = $ARGV[3] ;
Alternative:
my ($host, $community, $OID, $porta) = @ARGV ;
my $versione = '2c';
You don't seem to be using that one.
print $val . "\n";
Alternative:
print "$val\n" ;
--
Affijn, Ruud
"Gewoon is een tijger."
.
- References:
- SNMP module to query net-snmp
- From: milaus
- Re: SNMP module to query net-snmp
- From: Dr.Ruud
- Re: SNMP module to query net-snmp
- From: milaus
- SNMP module to query net-snmp
- Prev by Date: Re: SNMP module to query net-snmp
- Next by Date: Re: Can overloaded '+' return an array? If so, how?
- Previous by thread: Re: SNMP module to query net-snmp
- Next by thread: FAQ 7.16 What's the difference between dynamic and lexical (static) scoping? Between local() and my()?
- Index(es):
Relevant Pages
|
|