- or download this
sub foo {
my $t0 = Benchmark->new();
...
my $t1 = Benchmark->new();
say "bar() took" . timestr(timediff($t1, $t0));
}
- or download this
sub foo {
say "Starting foo() with yadda";
...
say "Now munging";
say "Done with foo()";
}
- or download this
my $DEBUG = 1;
...
say $msg;
}
}