- or download this
sub upto {
my $stop = $_[0];
...
At 3
At 4
At 5
- or download this
sub frobnicate {
print "Frobnicating\n";
...
my $thr1 = async { gargle() };
my $thr2 = async { gargle() };
my $thr3 = async { gargle() };
- 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;