Subject: | sub foo : method { } gives compile time error(s) |
The follow script:
=====
use Perl6::Subs;
use strict;
sub foo : method
{
}
=====
Gives me:
Invalid CODE attribute: sub at test.pl line 6
BEGIN failed--compilation aborted at test.pl line 9.
Using the following alternative syntax seems to work for me:
method foo
{
}
I'm running perl 5.8.8 on Debian Etch. This is similar (but different)
than ticket #16969:
http://rt.cpan.org/Ticket/Display.html?id=16969