in reply to Transposition of each letter pair in string
$\ = "\n"; my $foo = 'thisisatest'; print for map { substr((my $bar = $foo), $_, 2, reverse substr $foo, $_, 2); $bar; } 0 .. -2 + length $foo;
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Transposition of each letter pair in string
by Aristotle (Chancellor) on Dec 29, 2002 at 16:15 UTC | |
by Juerd (Abbot) on Dec 29, 2002 at 16:59 UTC | |
by Aristotle (Chancellor) on Dec 29, 2002 at 17:05 UTC |