Help for this page

Select Code to Download


  1. or download this
    sub rle {
      my$c;map{shift;$c++;$_[0]ne$_?("$_*$c",$c=0)[0]:()}@_
    }
    
  2. or download this
    sub rle {
      my$c;map{shift;$c++;$_[0]ne$_?"$_*$c"|($c=''):()}@_
    }