Anonymous user
Handle a signal: Difference between revisions
→{{header|Perl}}: sample output
(→{{header|Perl}}: working example) |
(→{{header|Perl}}: sample output) |
||
Line 245:
my $num = AE::timer 0, 0.5, sub { say $n++ };
$exit->recv;
say " interrupted after ", AE::time - $start, " seconds";</lang>
Sample output:
<pre>
0
1
2
3
4
5
6
7
8
9
10
^C interrupted after 5.23734092712402 seconds
</pre>
=={{header|PHP}}==
|