in reply to string translation
Please Try this if u wish,
my $N = 7; $str='polar bear'; $str =~s#^(.{$N})(.*)(.{3})$#\U$1\E$2\L$3#gsi; print $str; output: ********* POLAR Bear [download]
senthil kumar.k