Raw command line arguments can be found in @*ARGS .
You can also use sub &MAIN with the slurpy parameter, i.e.
sub MAIN(*@args) { ... }
Note that this will reject the calls that the flags pass. If you want to capture them, use
sub MAIN(*@args, *%flags) { ... }
Christoph
source share