Skip Menu |
Report information
Id: 131476
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: mt1957 [at]

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)

Subject: list named argument in MAIN
Date: Thu, 1 Jun 2017 17:16:58 +0200
To: rakudobug [...]
From: Marcel Timmerman <mt1957 [...]>
Download (untitled) / with headers
text/plain 505b
Hi I had some discussion on the perl6 users list involving the use of a List named argument. The example below works correct perl6 -e 'sub MAIN (List :$dirs=[]) { .say for flat @$dirs.List».split: /","/ }' --dirs=d1 --dirs=d2 --dirs=d3,d4,d5 Show quoted text
> d1 > d2 > d3 > d4 > d5
Giving the --dirs option on command line once however, it shows the usage message which it shouldn't. This is Rakudo version 2017.05-338-gaca1929 built on MoarVM version 2017.05-25-g62bc54e implementing Perl 6.c. Regards Marcel

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at