Help for this page

Select Code to Download


  1. or download this
    perl -e 'open my $outfh, ">", "sample.txt"; while ($i++ < 50_000_000) 
    +{print $outfh "abcdefghijklmnopqrstuvwxyz0123456789\n";}'
    
  2. or download this
    perl -E 'open my $infh, "<", "sample.txt"; while(<$infh>) {$i++} say $
    +i;'
    
  3. or download this
    my %dispatch = (
        sample =>  sub {my $capture = shift; # do something with $capture}
    +,
    ...
            $dispatch{$1}->($2);
        }
    }