3 ms·
It's more like a label for code to run at start. Also shows the Perl 6 way to interpolate code within a string literal. Compare to the rough Perl 5 equiv, for
by tyingq 11y ago
It's more like a label for code to run at start. Also shows the Perl 6 way to interpolate code within a string literal.
Compare to the rough Perl 5 equiv, for versions of Perl 5 before say existed:
sleep 2;
print "Code took @{[time() - $then]} seconds to run\n";
INIT{$then=time();}