Based on your example, I am unsure of exactly the
manipulation you ar trying to perform.
In general most string reordering type manipulations
are best accomplished with the
substr
function.
my $origstr="0102030405060A0BC";
my $newstr=substr($origstr,1,15).substr($origstr,0,1)."F".substr($orig
+str,16,1);