llagos has asked for the wisdom of the Perl Monks concerning the following question:
I need to extract the 4194288 from $oidfila and get me the rest... I've tried:print "oid[$oidfila]\n" oid[1.3.6.1.4.1.1012.170.2.40.1.1.1.0.4194288]
but it just gets me blanks. You help is more than appreciated. Regards, Leo$oidfila =~ s/^[0-9\.]+(\.[0-9]+)$//;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regexp problem - extract all but last part of SNMP OID
by Eliya (Vicar) on Nov 21, 2011 at 16:23 UTC | |
by kennethk (Abbot) on Nov 21, 2011 at 17:06 UTC | |
by hbm (Hermit) on Nov 21, 2011 at 19:18 UTC |