Help for this page

Select Code to Download


  1. or download this
    
    #!perl -lp
    ...
    
    chomp;
    $_=cut $s, $_;
    
  2. or download this
    #!perl -lp
    BEGIN{@s=split/,/,shift}
    ...
    $r.=substr$x,$1-1,($'||$1)-$1+1
    for@s,$r='';
    $_=$r
    
  3. or download this
    #!perl -ln
    BEGIN{($s=shift)=~s/-/../g}
    chomp;
    $x=$_;
    print+map{substr$x,$_-1,1}eval$s