开发者

What modules do you think would make ideal Perl 5 defaults?

开发者 https://www.devze.com 2023-01-19 03:57 出处:网络
I\'m looking to fork Modern::Perl, it\'s over a year old now, and far dated. I\'ve created nextgen.pm (now on cpan) to take it place.

I'm looking to fork Modern::Perl, it's over a year old now, and far dated. I've created nextgen.pm (now on cpan) to take it place.

So far, I've added in:

  • autodie,
  • and indirect

I assert 5.10.1, so no one trying to write modern Perl gets caught up in the mess that is 5.10.0's smart match. I've also added conditional support for

  • Moose,
  • oose.pm,
  • and namespace::clean

What else can you think of that might be valuable in a replacement for Modern::Perl? One thing t开发者_如何学编程hat I've considered doing is trying to assert that a module was not included by the calling package (such as Class::Accessor). Any other ideas?


Try::Tiny

EDIT: And definitely File::Slurp


You seem to import Moose unconditionally if you're not being imported into main. That's just wrong. Not every package is a class.


Method::Signatures::Simple, or some more advanced method and function signature mechanism.


Anything that's in perl5i.


Moose::Autobox, or at least autobox::Core.


Mouse, Any::Moose, AnyEvent, Object::Event, Plack, DBIx::DataModel, DBIx::Connector

0

精彩评论

暂无评论...
验证码 换一张
取 消