Help for this page

Select Code to Download


  1. or download this
    sub Z{
    @_=@l=sort{.5<=>rand}@_;join('',reverse@l)eq(join'',map{map{chop}@l}@l
    +)?@_:&Z
    }
    
  2. or download this
    sub Z{
    @_=@l=map{splice@_,rand@_,1}@_;join('',reverse@l)eq(join'',map{map{cho
    +p}@l}@l)?@_:Z(@_)
    }
    
  3. or download this
    sub Z{
    for(;;){@_=@l=map{splice@_,rand@_,1}@_;return@_ if join('',reverse@l)e
    +q join'',map{map{chop}@l}@l}
    }
    
  4. or download this
    sub Z{
    for(;;){@l=map{splice@_,rand@_,1}@_;@_=@l;return@_ if join('',reverse@
    +l)eq join'',map{map{chop}@l}@l}
    }
    
  5. or download this
    my @ar = qw/NEAR LANE EARS AREA/ ;
    # @ar = qw/LINGO MILLS SMOCK IDIOM LOGIC/;
    
    ...
    sub Z{
    while(1){@l=map{splice@_,rand@_,1}@_;@_=@l;return@_ if join('',reverse
    +@l)eq join'',map{map{chop}@l}@l}
    }