Help for this page

Select Code to Download


  1. or download this
    my $_index = sub {
        my $cnt = 0;
    ...
        ++$cnt while $pos = index($dta,"\n\n",$pos+2);
        $cnt{_index} = $cnt;
    };
    
  2. or download this
    my $_while_re = sub{
        my $cnt = 0;
    ...
        $cnt++ while $dta =~ /$recsep/g;
        $cnt{_while_re} = $cnt;
    };