in reply to Re: Transposition of each letter pair in string
in thread Transposition of each letter pair in string
my $foo = 'thisisatest'; for(0 .. -2 + length $foo) { substr((my $bar = $foo), $_, 2, reverse substr $foo, $_, 2); print $bar, $/; }
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^2: Transposition of each letter pair in string
by Juerd (Abbot) on Dec 29, 2002 at 16:59 UTC | |
by Aristotle (Chancellor) on Dec 29, 2002 at 17:05 UTC |