Help for this page

Select Code to Download


  1. or download this
    sub upto {
        my $stop = $_[0];
    ...
    At 3
    At 4
    At 5
    
  2. or download this
    sub frobnicate {
        print "Frobnicating\n";
    ...
    my $thr1 = async { gargle() };
    my $thr2 = async { gargle() };
    my $thr3 = async { gargle() };
    
  3. or download this
        open my $fh, "<:async", $filename
            or die "Couldn't open '$filename': $!";
        my $line = <$fh>;
        # ... do some busy work without touching $line ...
        print $line;