Hi Ruben Ruben Montes wrote: > Hello, > I'm working with Net::SNMP and I need to consult an OID. The last > number of the OID is a variable and I want to make a get of this OID, > but the debugger says it's not a numeric value... > > $i=1 > while($i<4){ > my $descr ='1.3.6.1.2.1.2.2.1.2.($i)'; > ... > How can I pass this $i to a valid numeric value?
Use my $descr = "1.3.6.1.2.1.2.2.1.2.$i"; Double quotes allow expansion of embedded variables, whereas single quotes don't. HTH, ROb -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]