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
In reply to Re: How to replace the last 2 characters in a string
by ashokpj
in thread How to replace the last 2 characters in a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |