Okay to wrap standard Perl modules with Moose?

Many standard modules use direct perl - the problem is that these guys arent using Moosey stuff, so I force myself to spoof them with Moose or invent some simple functions in large libraries for convenience.

I wondered if there was any general approach to how developers using Moose use other non-Moose libraries.

Being new to Perl and Moose, I would like to better understand how Moose is used in such situations, or when they usually prefer to use Moose vs Perl or even MooseX or some other package, or its arbitrary.

There seem to be different schools of thought, but Perl is as old as it is — there are too many conflicting sources, so it’s hard to navigate a consistent truth. I'm not sure what to believe!

Does anyone have a specific source that they are referring to for the "modern" use of perl? Understand that I have been using perl for a month, so I am green for this community.

Update

I don’t want to hurt anyone by talking about my favorite libraries in ways that they might not appreciate, so I deleted my comment on some libraries that I used to refocus on the question.

Thanks for the guide!

+5
source share
2 answers

, , . Moosify , .

Moose, MooseX::NonMoose.

HTML- CGI.pm , CGI::Simple.

+13


CGI


CGI - , , , / . , , () . , , .

CGI - , , , , CGI:: Simple CGI:: . CGI.pm , , cookie (), HTML .

CGI.pm, FastCGI, script, , .

( ) , ? , , , . CGI , , ; : " - ". , - , . , , , 95% , , 5%? : , , , , , , . - , , , , ( ) CGI .


Perl


, " Perl" - . Perl; Ruby Python.

, Perl , , . , , Perl5 ; , ( ), / (, for/foreach).

. Perl6 perl ( ), ( Duke Nukem 4 Ever ).


XS


, , XS - Perl C, , , perl . DBI PostgreSQL. DBD:: PgPP, perl Postgres, DBD:: Pg, , , C . ( ).

0

All Articles