On 03/15/2017 10:04 AM, Timo Paulssen wrote:
On 14/03/17 20:58, ToddAndMargo wrote:
#!/usr/bin/perl6
if not @*ARGS.elems > 0 { say "command line is empty"; exit 0; }
say "\@\*ARGS has " ~ @*ARGS.elems ~ " elements";
say " \@\*ARGS = <" ~ @*ARGS ~ ">";
say " \@\*ARGS.perl = <" ~
On 14/03/17 20:58, ToddAndMargo wrote:
>
> #!/usr/bin/perl6
>
> if not @*ARGS.elems > 0 { say "command line is empty"; exit 0; }
>
> say "\@\*ARGS has " ~ @*ARGS.elems ~ " elements";
> say " \@\*ARGS = <" ~ @*ARGS ~ ">";
> say " \@\*ARGS.perl = <" ~ @*ARGS.perl ~ ">\n";
>
> say "say
On 03/14/2017 01:37 PM, ToddAndMargo wrote:
On 03/14/2017 01:26 PM, Will Coleda wrote:
FYI
https://docs.perl6.org/language/functions#index-entry-MAIN
Thank you!
So far, I haven't gotten to creative:
my $DebugFlag = @*ARGS.elems; # generate a crash report if > 0
On 03/14/2017 01:26 PM, Will Coleda wrote:
FYI
https://docs.perl6.org/language/functions#index-entry-MAIN
Thank you!
FYI
https://docs.perl6.org/language/functions#index-entry-MAIN
On Tue, Mar 14, 2017 at 3:58 PM, ToddAndMargo wrote:
> Hi All,
>
> I wrote myself a little demonstration program on
> reading elements from the command line. I thought
> it might be useful to others (DuckDuckGo is a bust
> on Perl 6