As a one-liner...
$string = 'thisIsATest' (substr( $a = $string, $_, 2)) =~ s/(.)(.)/$2$1/ , print $a . $/ for (0 .. length($string) - 2) htisIsATest tihsIsATest thsiIsATest thiIssATest thissIATest thisIAsTest thisIsTAest thisIsAeTst thisIsATset thisIsATets
Examine what is said, not who speaks.
In reply to Re: Transposition of each letter pair in string
by BrowserUk
in thread Transposition of each letter pair in string
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |