Help for this page

Select Code to Download


  1. or download this
    sub split_simple_quiet
    {
    ...
        my $n = scalar split ',', $str;
        #print "$n\n";
    }
    
  2. or download this
    Use of implicit split to @_ is deprecated at H:\dev\perl\perlmonks\ben
    +ch.pl line 23.
    Benchmark: timing 10000 iterations of split_anonymous, split_simple, s
    +plit_simple_quiet...
    ...
    split_anonymous    643/s                --               -21%         
    +      -22%
    split_simple       818/s               27%                 --         
    +       -1%
    split_simple_quiet 823/s               28%                 1%         
    +        --