So now you'll have a hash where the keys points to their corresponding constant values.my %hash = { $_ => (\&{$_})->() } qw( INTEGER INTEGER32 OCTET_STRING OBJECT_IDENTIFIER IPADDRESS COUNTER COUNTER32 GAUGE GAUGE32 UNSIGNED32 TIMETICKS OPAQUE COUNTER64 );
_________
broquaint
In reply to Re: How can I reference a hash value with an array
by broquaint
in thread How can I reference a hash value with an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |