Enter MooseX, The First, I made it

Well I am happy to say my first MooseX module MooseX::AuthorizedMethodRoles is now happily up on CPAN and awaiting global usage by the entire Nation of Perl.

Well maybe not, I have found a use for it and maybe some one else will someday we will see what comes of it,

Now that I am a proud MooseX authour I wonder if I get to wear a funny hat of special badge or maybe at the next YAPC EU conference at the big dinner I will be asked to sit at the cool kids table

Draughtsman Meal.jpg

rather than being shuffled over way in the back with the Dutch


Anyway I digress from today's task that is to see it there is anything wrong with my MooseX that I or Dist::Zilla did not pick up.

Well my first stop was to look over the POD and I did manage to spot a few minor typos like the copyright date, a few links not correct and I did not put a link to the repo in there so I will have to hit those tonight.

I also noticed I committed an extra copy of my code up to Github will have to clean that out as well.

Now lets see what CPAN testers think of my code.

Mostly Green but I see there is a large fail ban in the GNU/Linux x86_64_linx ban so that needs a quick look

Type of arg 1 to keys must be hash (not private variable) at /tmp/loop_over_bdir-5992-vgClzN/MooseX-AuthorizedMethodRoles-0.001-7YXR4P/blib/lib/MooseX/Meta/Method/Role/Authorized.pm line 37, near "$requires)"
Compilation failed in require at /home/sand/src/perl/repoperls/installed-perls/perl/perl-5.10.0/5da8/lib/site_perl/5.10.0/Module/Runtime.pm line 317.
Compilation failed in require at t/00-Load.t line 8.
BEGIN failed--compilation aborted at t/00-Load.t line 8.
# Looks like your test exited with 255 before it could output anything.
t/00-Load.t ........

Not 100% sure what that means but I am after low hanging fruit now and looking at the details this may be a case where the Moose on the test box might not be the right one. So I will have to look into that further

Now the big one the Kwalitee report and I did not do so well.

  1. No Readme,
  2. No Changelog
  3. No Use Strict (though I am using Moose so it should not fail this?)
  4. POD errors
  5. Package/version problems

Ok I have some work to fix the above and there are even more so my score was 112.5 and 84.83 so I have allot of room for improvement.

Well I guess I just generated a few more blog posts


"Type of arg 1 to keys must be hash" means that you're trying to do keys($requires) (where $requires is a hashref), but that only works in Perl 5.14 and above.

Try keys(%$requires).

PS: when you release version 0.001 of a distribution, I think the Kwalitee report should be more forgiving about a missing changelog. :-)

Leave a comment

About byterock

user-pic Long time Perl guy, a few CPAN mods allot of work on DBD::Oracle and a few YAPC presentations