in reply to How to replace the last 2 characters in a string
try this one. it code will change all 55 into 67 at any place.
my $timestmpa_value = "200554250955"; $timestmpa_value =~ s#55#67#g; print $timestmpa_value [download]