die() will print the message on the standard error and stop the execution of the program.
#!/usr/bin/env perl6 use v6; say "Before calling die"; die "This will kill the script"; say "This will not show up";
Table of Contents