in reply to Re^3: appending a variable
in thread appending a variable
I got an error "Can't call method "YYYYmmddHHMMSS" on an undefined value" at $FN_OUTPUT This is my code
my $vmstr = "zldcdyh1bdce2d14-xxx-vccpohr-correlator-0"; my ($opstr) = $vmstr =~ /-(\d\d)$/; #using the value of $vmstr + of the VM but with an added 0 my $OPinst = "/PMOSS_SIPNBVQM_5MIN_OHDR_${YYYYmmddHHMMSS$opstr}"; my $P3inst = "/PMOSS_P3_SIPNBVQM_5MIN_OHDR_${YYYYmmddHHMMSS$opstr +}"; $FN_OUTPUT = "$DST_DIR${OPinst}_${INSTANCE}_$$"; # Suff +ixes added later: .processing .completed $FN_P3_OUTPUT ="$DST_DIR${P3inst}_${INSTANCE}_$$"; # Suf +fixes added later: .processing .completed
Is this incorrect
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: appending a variable
by hippo (Archbishop) on Apr 28, 2022 at 21:35 UTC | |
by pragovnj (Acolyte) on Apr 28, 2022 at 22:26 UTC | |
by GrandFather (Saint) on Apr 28, 2022 at 23:36 UTC | |
by Marshall (Canon) on Apr 29, 2022 at 01:28 UTC | |
by pragovnj (Acolyte) on Apr 29, 2022 at 13:35 UTC | |
by hippo (Archbishop) on Apr 29, 2022 at 13:47 UTC | |
|