On Sat, Nov 16, 2013 at 12:25:23AM +0200, Serge A. Ribalchenko wrote:
> sub MAIN(@input, Bool :$n, :$i='any') {
>   say "n is $n, interface is $i, input is ", @input; 

it's *@input, not @input: 

use v6;

sub MAIN( Bool :$n=False, :$i='any', *@spec ) {
      say "n is $n, interface is $i, input is {@spec}";
} 

regards


-- 
Marc Chantreux (eiro on github and freenode)
http://eiro.github.com/
http://eiro.github.com/atom.xml
"Don't believe everything you read on the Internet"
    -- Abraham Lincoln

Reply via email to