But that example will pad an 0 left or right and will make VMs 10-99 as 010 ,, 099, which is incorrect. I am looking this only for VMs, VM-0 to VM-9 in which case, it will be 00, 01...09. From VMs 10-99, it should just return 10,11...99. This is my code
my $vmstr = "zldcdyh1bdce2d14-xxx-voipohr-correlator-0"; my ($digits) = $vmstr =~ /-(\d+)$/; my $OPinst = "/PMOSS_SIPNBVQM_5MIN_OHDR_$YYYYmmddHHMMSS$digits";
In reply to Re^10: appending a variable
by pragovnj
in thread appending a variable
by pragovnj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |