- or download this
use strict;
use warnings;
...
printf qq(%-7s => "%s"\n), qq("$t"), swap( $t );
}
exit( 0 );
- or download this
sub swap {
my ($str) = @_;
...
}
return $str;
}
- or download this
"" => ""
"1" => "1"
...
"123" => "213"
"1234" => "2143"
"12345" => "21435"