in reply to Re^7: appending a variable
in thread appending a variable
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 "-"?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: appending a variable
by hippo (Archbishop) on Apr 29, 2022 at 13:47 UTC | |
|