Handle a signal: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: changed/added comments and whitespace, changed indentations, add comments in the REXX section header and output section.) |
(→{{header|Perl 6}}: make shorter) |
||
Line 841: | Line 841: | ||
=={{header|Perl 6}}== |
=={{header|Perl 6}}== |
||
We note with glee that the task does not require us to print <em>consecutive</em> integers, so we'll print Fibonacci numbers instead. <tt>:-)</tt> |
We note with glee that the task does not require us to print <em>consecutive</em> integers, so we'll print Fibonacci numbers instead. <tt>:-)</tt> |
||
<lang perl6>signal( |
<lang perl6>signal(SIGINT).tap: { |
||
note "Took { now - INIT now } seconds."; |
note "Took { now - INIT now } seconds."; |
||
exit; |
exit; |