in reply to remove first and last character of string
for( 1 .. 2 ){ $string = reverse $string; chop $string; } [download]