Parsing program arguments

Author: stmuk

Parse program arguments as passed from the command line

Source code: 15-01-parse-program-args.p6

#!/usr/bin/env perl6

use v6;

##| open file, whatever
sub MAIN (Str :$output!, Bool :$debug = False )  { # False can be ommitted
    warn "debugging" if $debug;
    dd $output;
}