Re: what are the commonly used modules in perl?
by toolic (Bishop) on Jan 06, 2014 at 17:10 UTC
|
This type of question has been asked before, and there really is no objective answer. That being said:
| [reply] |
Re: what are the commonly used modules in perl?
by Anonymous Monk on Jan 06, 2014 at 17:30 UTC
|
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
| [reply] |
|
| [reply] |
Re: what are the commonly used modules in perl?
by Random_Walk (Prior) 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!
| [reply] [d/l] [select] |
Re: what are the commonly used modules in perl?
by Tux (Canon) 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
| [reply] |
Re: what are the commonly used modules in perl?
by roboticus (Chancellor) 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.
| [reply] |
Re: what are the commonly used modules in perl?
by PerlSufi (Friar) on Jan 06, 2014 at 17:23 UTC
|
use strict;
use warnings;
at the top of your script at ALL TIMES. | [reply] [d/l] |
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.
| [reply] |
|
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.
| [reply] |
Re: what are the commonly used modules in perl?
by Athanasius (Archbishop) 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,
| [reply] |
Re: what are the commonly used modules in perl?
by Anonymous Monk on Jan 06, 2014 at 17:01 UTC
|
| [reply] |
Re: what are the commonly used modules in perl?
by molecules (Monk) on Jan 09, 2014 at 13:24 UTC
|
| [reply] |
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.
| [reply] [d/l] |
Re: what are the commonly used modules in perl?
by hdb (Monsignor) on Jan 10, 2014 at 07:38 UTC
|
| [reply] |