Hi,

How can I read a list of items from the command line. Something like;

mkdir.pl6 --dirs=d1,d2,d3


I thought I could do something like;

sub MAIN (List :$dirs=[]) {
  mkdir($_) for @$dirs;
}

But it keeps displaying the usage message


Greetings,
Marcel

Reply via email to