# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #126532]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=126532 >
Basically, any argument containing only whitespace seems to trigger
this error. It seems that the presence of the MAIN sub is part of the
error; remove it and it accepts all of the inputs causing an error
below.
$ cat x.pl
sub MAIN {}
$ perl6 x.pl -y=' '
Cannot invoke this object
in block <unit> at x.pl:1
$ perl6 x.pl -y=''
Cannot invoke this object
in block <unit> at x.pl:1
$ perl6 x.pl -y=`perl -E'say "\n"'`
Cannot invoke this object
in block <unit> at x.pl:1
$ perl6 x.pl -y=`perl -E'say "\t"'`
Cannot invoke this object
in block <unit> at x.pl:1
$ perl6 x.pl -y=`perl -E'say "\t "'`
Cannot invoke this object
in block <unit> at x.pl:1
$ perl6 --version
This is perl6 version 2015.10-89-g36c4c6a built on MoarVM version
2015.10-14-g5ff3001