Try this,
use strict; use warnings; my $timestmpa_value = "200504250955"; $timestmpa_value =~ s/.{2}$/67/; print $timestmpa_value;
You should view How (Not) To Ask A Question
Regards,
Velusamy R.
In reply to Re: How to replace the last 2 characters in a string
by Samy_rio
in thread How to replace the last 2 characters in a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |