Chapter 3. Files in Perl6

3.1. exit, warn, die

Example 3-1. examples/files/exit.p6

#!/usr/bin/perl6

say "hello";

exit;

say "world";

Example 3-2. examples/files/warn_die.p6

#!/usr/bin/perl6

warn "This is a warning";

say "Hello World";

die "This will kill the script";

say "This will not show up";