in reply to Rearranging a string
$old .= (length($old) % 2) ? 'F' : ''; $old =~ s/\G(\w)(\w)/$2$1/g; [download]