in reply to Re^2: regexp problem - extract all but last part of SNMP OID
in thread regexp problem - extract all but last part of SNMP OID
Which, according to perlre, can be written more efficiently with the "keep" construct:
$oidfila =~ s/^[\d.]+\K\.\d+$//;
|
|---|