Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

what are the commonly used modules in perl?

by littlemonk (Sexton)
on Jan 06, 2014 at 16:54 UTC ( #1069545=perlquestion: print w/ replies, xml ) Need Help??
littlemonk has asked for the wisdom of the Perl Monks concerning the following question:

Hi ..i am stared learning Perl ,so i want to know the list of commonly used modules or mostly used list of modules..please tell me ..thanks in advance!!!

Comment on what are the commonly used modules in perl?
Re: what are the commonly used modules in perl?
by Anonymous Monk on Jan 06, 2014 at 17:01 UTC
    CPAN.pm
Re: what are the commonly used modules in perl?
by toolic (Chancellor) on Jan 06, 2014 at 17:10 UTC
Re: what are the commonly used modules in perl?
by Tux (Monsignor) on Jan 06, 2014 at 17:11 UTC

    There is no definite answer: CPAN is HUGE and stuffed with superb modules. What is most commonly used completely depends on the task at hand. Start with specifying your target area:

    • Database
    • GUI programming
    • Networking
    • (raw) data conversions
    • Games
    • Web programming
    • (web) services
    • En-/De-cryption
    • (Heavy) calculation

    Enjoy, Have FUN! H.Merijn
Re: what are the commonly used modules in perl?
by PerlSufi (Friar) on Jan 06, 2014 at 17:23 UTC
    don't forget to put
    use strict; use warnings;
    at the top of your script at ALL TIMES.
Re: what are the commonly used modules in perl?
by Anonymous Monk on Jan 06, 2014 at 17:30 UTC

    Some commonly-used built-in modules:

    List::Util
    Getopt::Long
    Test::More
    Cwd
    Data::Dumper
    File::Find
    File::Temp
    File::Basename
    

    Some commonly-used pragmas:

    strict
    warnings
    autodie
    diagnostics
    

    Some commonly-used modules from the CPAN:

    List::MoreUtils
    DateTime
    File::Slurp
    Moose
    
Re: what are the commonly used modules in perl?
by Random_Walk (Parson) on Jan 06, 2014 at 17:39 UTC

    As others say, they is no canonical answer, but FWIW here are some I end up using often

    Data::Dumper # Oh yes, use this one a lot DBI LWP JSON POSIX Time::HiRes File::Find Data::Dumper # did I mention that one yet ;)
    Some you may want to avoid until you have learned more Perl, but most useful, and fun when you do have a need:
    Threads Thread::Queue POE

    Cheers,
    R.

    Pereant, qui ante nos nostra dixerunt!
Re: what are the commonly used modules in perl?
by roboticus (Canon) on Jan 06, 2014 at 17:39 UTC

    littlemonk:

    As you can see from the other responses, it depends on the problems you tend to need to solve. Having said that, my list of "indispensible modules" is: Spreadsheet::ParseExcel, Spreadsheet::WriteExcel, DBI, DBD::ODBC, DBD::Oracle, and DBD::SQLite. There are dozens of others that I also like to use, but since I do a lot of data spelunking and generating reports for users, these are the ones that I use in most of my projects.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

Re: what are the commonly used modules in perl?
by Athanasius (Monsignor) on Jan 07, 2014 at 02:39 UTC

    Another good place to start looking is Task::Kensho, which is

    ...a first cut at building a list of recommended modules....
    The modules that are bundled by Task::Kensho ... are all taken from various top 100 most used perl modules lists and from discussions with various subject matter experts in the Perl Community.

    The non-core module I use most often is Data::Dump, which I prefer to Data::Dumper.

    Hope that helps,

    Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Re: what are the commonly used modules in perl?
by petdance (Parson) on Jan 07, 2014 at 04:44 UTC
    Your question is kind of like saying "I just found out about Home Depot, and I want to know the list of commonly used tools." So someone might say "carpet knife, pipe wrench, screwdriver, floor sander, paint brush and lawn mower are commonly used", but that's not very helpful to you if you're interested in doing electrical work.

    Tell us more about what you do with your programming and we might be able to point you at some helpful modules.

    xoxo,
    Andy

      I kind of got the feeling that he is a gamer used to things like "Hey, what mods should i use for Skyrim" and then applied that kind of thinking to Perl.
Re: what are the commonly used modules in perl?
by molecules (Monk) on Jan 09, 2014 at 13:24 UTC
Re: what are the commonly used modules in perl?
by KevinZwack (Chaplain) on Jan 09, 2014 at 16:47 UTC

    I think this is a reasonable question; the choices of CPAN modules is overwhelming, and yet there are some modules that I use frequently.

    use Getopt::Long; # I use this in all my programs use Carp qw(cluck confess); use Time::HiRes; # I wish this was Perl's default use Win32; # When I need to call a Win32 DLL use XML::LibXML; # Meets all my XML needs; See also XML::SemanticDif +f use LWP; # LWP & friends for web stuff use Exporter; # For writing my own modules use IO::Handle; # Some less frequently used favorites use Term::ANSIColor; # The world is better in color use Socket; # When you need to do your own socket thing use DateTime::Format::* # For date/time processing

    I hope that helps.

Re: what are the commonly used modules in perl?
by hdb (Prior) on Jan 10, 2014 at 07:38 UTC

    I would like to add Text::CSV to the lists mentioned above.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1069545]
Approved by toolic
Front-paged by toolic
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2014-12-27 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls