I have a perl script that takes system date and write that date to a filename.
System date is assigned to TRH1 variable and then it set to a filename.
$TRH1 =`date + %Y%m%d%H%M`;
print "TRH1 => $TRH1\n";
open(TPFILE, ">./log/errTS_TPList_$TRH1.csv");
However, TRH1 seems to have correct value but file name has a question mark, that I do not desire.
TRH1 => 202103031940
errTS_TPList_202103031940?.csv
Can you show me how to get rid of this "?" ?