A
Amaninder
Hi everyone
There is a class called Message.pm which has a function
sub INTEGER() { 0x02 }
and i have a variable called $function which has value 'INTEGER'
$function = 'INTEGER'
I want to get the 0x02 doing something like this
$a = Net::SNMP::Message::$function();
But its not working. Can someone suggest me how to use the function
INTEGER() of someClass if i have 'INTEGER' as string in $function .
I tried this and it works
$a = Net::SNMP::Message::INTEGER();
Thanks in advance.
Regards
Amaninder Saini
There is a class called Message.pm which has a function
sub INTEGER() { 0x02 }
and i have a variable called $function which has value 'INTEGER'
$function = 'INTEGER'
I want to get the 0x02 doing something like this
$a = Net::SNMP::Message::$function();
But its not working. Can someone suggest me how to use the function
INTEGER() of someClass if i have 'INTEGER' as string in $function .
I tried this and it works
$a = Net::SNMP::Message::INTEGER();
Thanks in advance.
Regards
Amaninder Saini