in reply to Transposition of each letter pair in string
perl -e'$_=q#: 13_2: 12/"{>: 8_4) (_4: 6/2"-2; 3;-2"\2: 5/7\_/\7: 12m m::#;s#:#\n#g;s#(\D)(\d+)#$1x$2#ge;print'perl -le'$s="thisisatest";map{$t=$s;(substr($t,$_,1),substr($t,$_+1,1) +)=(substr($t,$_+1,1),substr($t,$_,1));print $t}0..length($s)-2'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Transposition of each letter pair in string
by Aristotle (Chancellor) on Dec 29, 2002 at 16:09 UTC |