in reply to remove first and last character of string

To delete the first and the last character:
for( 1 .. 2 ){ $string = reverse $string; chop $string; }