Catch ctrl-c
AUTHOR
stmuk
Catch ctrl-c to ignore or execute code
#!/usr/bin/env raku
use v6;
signal(SIGINT).tap();
#signal(SIGINT).tap( { say "caught" } );
my $name = prompt "what's your name?";
dd $name;
stmuk
Catch ctrl-c to ignore or execute code
#!/usr/bin/env raku
use v6;
signal(SIGINT).tap();
#signal(SIGINT).tap( { say "caught" } );
my $name = prompt "what's your name?";
dd $name;
Resoures
Learning
The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.