[Wellington-pm] Accessing functions in modules
Ewen McNeill
ewen at naos.co.nz
Wed Nov 1 16:44:26 PST 2006
In message <1162424914.1049.42.camel at localhost.localdomain>, Lesley Walker write
s:
>What do I have to do so that I can call it by oid_lex_sort() or
>&oid_lex_sort() rather than the more cumbersome
>Net::SNMP::oid_lex_sort()?
use Net::SNMP qw(:snmp);
to pick up that and some related functions, or just:
use Net::SNMP qw(oid_lex_sort);
if that's the only one you want. (The :snmp, etc, tags are described
near the end of the Net::SNMP documentation.)
Ewen
More information about the Wellington-pm
mailing list