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