The main issue I have is that I have a very strong preference of installing it directly from CPAN.
I installed both PNI and PNI::Core from CPAN on Win 7 but it did not see any executable to launch it. It also did not specify Tk as a prerequisite and I thought you mentioned that.
Is there a script to launch the application I missed? If not, any chance including one?
perl -e ' package MyRole { use Moo::Role; requires "my_attr"; }package MyClass {
use Moo;
with "MyRole";
sub my_attr;
has my_attr => ( is => "ro" );
}
'
You cannot overwrite a locally defined method (my_attr) with a reader at /usr/share/perl5/Method/Generate/Accessor.pm line 30.
The only way I've found to avoid this without putting the with
at end is the following:
perl -e ' package MyRole { use Moo::Role; requires "my_attr"; }]]>package MyClass {
use Moo;
with "MyRole";
BEGIN {
has my_attr => ( is => "ro" );
}
}
'