Help for this page

Select Code to Download


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