Subject: | Handking of white-spaces in conjunction with module names needs to be improved |
use MooseX::Declare;
class Baz with (Foo, Bar) {};
Whitespace should be optional, it is NOT allowed after '(' nor before ')' but is optional around the ',' (where it is washed away).
regards
Subject: | bug.pl |
#!/usr/bin/env perl
use MooseX::Declare;
role Foo {
}
role Bar {
}
# class Baz with ( Foo, Bar ) { }
# Foo is not a module name at ./bug.pl line 9.
# ^leading space
# class Baz with (Foo, Bar ) { }
# Bar is not a module name at ./bug.pl line 12.
# ^trailing space
class Baz with (Foo, Bar) { }
## OK
print $MooseX::Declare::VERSION,"\n";
# 0.35
print $Moose::Util::VERSION,"\n";
# 2.0604
1;