in reply to Re: A quick date swap from a string
in thread A quick date swap from a string

Change the substitute to:
     $date =~ s/$strBegin/$months{uc $strBegin}/e;
The function uc() will not be executed otherwise.