$oidfila =~ s/(^[0-9\.]+)\.[0-9]+$/$1/;
In reply to Re^2: regexp problem - extract all but last part of SNMP OID by kennethk in thread regexp problem - extract all but last part of SNMP OID by llagos