Re: my command line notes:

2017-03-16 Thread ToddAndMargo
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 = <" ~

Re: my command line notes:

2017-03-15 Thread Timo Paulssen
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

Re: my command line notes:

2017-03-14 Thread ToddAndMargo
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

Re: my command line notes:

2017-03-14 Thread ToddAndMargo
On 03/14/2017 01:26 PM, Will Coleda wrote: FYI https://docs.perl6.org/language/functions#index-entry-MAIN Thank you!

Re: my command line notes:

2017-03-14 Thread Will Coleda
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