exit
$self->exit(0);
$self->exit(1);
$self->exit($code, $method_name, %args);
$self->exit($code, $method_name);
$self->exit($code);
The exit method exits the program using the exit code provided. The exit code defaults to 0. Optionally, you can call a handler before exiting by providing a method name with arguments. The handler will be called using the handle method so the arguments should be key/value pairs.
exit(Int $code, Maybe[Str] $name, Any %args) : ()
method
5 POD Errors
The following errors were encountered while parsing the POD:
- Around line 10:
Unknown directive: =name
- Around line 14:
Unknown directive: =usage
- Around line 23:
Unknown directive: =description
- Around line 30:
Unknown directive: =signature
- Around line 34:
Unknown directive: =type