Re: accepting values on the command line

2017-07-01 Thread Gabor Szabo
On Sat, Jul 1, 2017 at 4:30 PM, Elizabeth Mattijsen wrote: > >> On 1 Jul 2017, at 15:15, Gabor Szabo wrote: >> >> I was hoping to wrote a simple script that would accept a bunch of >> filenames on the command line so I wrote: >> >> #!/usr/bin/env perl6 >> use

Re: accepting values on the command line

2017-07-01 Thread Elizabeth Mattijsen
> On 1 Jul 2017, at 15:15, Gabor Szabo wrote: > > I was hoping to wrote a simple script that would accept a bunch of > filenames on the command line so I wrote: > > #!/usr/bin/env perl6 > use v6; > > multi sub MAIN(@files) { >say @files.perl; > } This signature will

accepting values on the command line

2017-07-01 Thread Gabor Szabo
I was hoping to wrote a simple script that would accept a bunch of filenames on the command line so I wrote: #!/usr/bin/env perl6 use v6; multi sub MAIN(@files) { say @files.perl; } $ perl6 code.pl6 Usage: code.pl6 $ perl6 code.pl6 abc Usage: code.pl6 $ perl6 code.pl6 abc def