http://www.perlmonks.org?node_id=787481


in reply to FOREACH Variables

Another catch:
use Net::SNMP '5.0' || die("Cannot Load SNMP Module\n");
is interpreted as:
use Net::SNMP ('5.0' || die("Cannot Load SNMP Module\n"));
Just stick to:
use Net::SNMP '5.0';
Perl will die anyway, if it can't find and load the module.