On Thu, 1 Jun 2017 14:11:47 +0200, Timo Paulssen <[email protected]> wrote:
> It seems like this only works if you supply --dirs= multiple times
>
> perl6 -e 'sub MAIN (List :$dirs=[]) { .say for @$dirs }' --dirs=d1
> --dirs=d2 --dirs=d3
>
> d1
> d2
> d3
took me a bit as it needs both .List *and* flat. Got help on IRC
$ perl6 -e 'sub MAIN (List :$dirs=[]) { .say for flat @$dirs.List».split: /","/
}' --dirs=d1 --dirs=d2 --dirs=d3,d4,d5
d1
d2
d3
d4
d5
--
H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/
using perl5.00307 .. 5.25 porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/
http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/
pgpyPZkVLd0DX.pgp
Description: OpenPGP digital signature
