in reply to How to replace the last 2 characters in a string

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.


eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';