my ($opstr) = $vmstr =~ /-(\d+)$/; works well! Previously, it was PMOSS_P3_SIPNBVQM_5MIN_OHDR_20220429132424 and now I see the 0 added correctly at the end, PMOSS_P3_SIPNBVQM_5MIN_OHDR_202204291324240 Suppose, if i need to display PMOSS_P3_SIPNBVQM_5MIN_OHDR_202204291324240 as PMOSS_P3_SIPNBVQM_5MIN_OHDR_2022042913242400 or PMOSS_P3_SIPNBVQM_5MIN_OHDR_2022042913242401, how do I modify, even if there is only one digit after the "-"?
In reply to Re^8: appending a variable
by pragovnj
in thread appending a variable
by pragovnj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |