PDA

View Full Version : The best free resources for learning Perl?



reprobus
April 24th, 2009, 09:54 PM
I am trying to learn perl. I found the free ebook "Beginning Perl" and the tutorial on perl.com, also a friend introduced me to the perldoc program and CPAN which are very useful. What free websites, ebooks, tutorials, etc do you guys recommend?

bapoumba
April 27th, 2009, 10:16 AM
Moved to PT.

ghostdog74
April 27th, 2009, 10:22 AM
I am trying to learn perl. I found the free ebook "Beginning Perl" and the tutorial on perl.com, also a friend introduced me to the perldoc program and CPAN which are very useful. What free websites, ebooks, tutorials, etc do you guys recommend?
straight from the Perl documentation. See my sig. Otherwise, on the command prompt (terminal) , type perldoc perl or perldoc perltoc.

tr333
May 10th, 2009, 02:13 PM
perldoc is definitely a good start; especially pages like perlstyle (http://perldoc.perl.org/perlstyle.html).
Some more great perl resources:
FMTEYEWTK (http://www.perl.com/doc/FMTEYEWTK/) by Tom Christiansen (Perl Cookbook); particularly his style slides (http://www.perl.com/doc/FMTEYEWTK/style/slide-index.html).
The one and only PerlMonks (http://www.perlmonks.org/).
CPAN (http://cpan.org/) - the home of all perl modules/documentation.

Don't forget one thing about perl: There's more than one way to do it!

khelben1979
May 10th, 2009, 03:31 PM
On perlcast.com (http://perlcast.com/) you have several perl podcasts. I'm downloading them myself right now.

unutbu
May 10th, 2009, 04:33 PM
Perhaps your local library has "Programming Perl" by Larry Wall, Tom Christiansen and Jon Orwant. This is the best book I have ever read on Perl.
If your local library doesn't have it, don't forget to check interlibrary loan.

This book is also bundled in "The Perl CD Bookshelf" published by O'Reilly.

You can also download all the examples in the book here:
http://examples.oreilly.com/pperl3/

jimi_hendrix
May 10th, 2009, 04:45 PM
the LaRoza's wiki (see stickie) has a good free book that you can download in pdf format

sujoy
May 10th, 2009, 07:02 PM
also see this thread,
http://stackoverflow.com/questions/194812/list-of-freely-available-programming-books

nvteighen
May 10th, 2009, 07:13 PM
Here you got a good index:

http://lambdagrok.wikidot.com/learn:perl

fredscripts
May 10th, 2009, 09:42 PM
Books: Learning Perl and then Intermediate Perl.

Always reading and then coding and reading the docs. Perl documentation ($perldoc perl) is by far the best documentation of all programming languages.
CPAN is that place where you go when you feel you're reinventing the wheel. You can be sure that if something isn't on CPAN, it isn't on the net. Also, when you read a module documentation, the first you get is a SYNOPSIS when the majority of the time is the only thing you need to use the module.

For example, the other day I needed to use a Binary Search Tree in python. I googled and I didn't found anything easily useful after visiting more than 5 webs. The wikipedia code was wrong ( I had to correct it, and still have some bugs ).

It took me 2 seconds to find just what I wanted in CPAN: http://search.cpan.org/~stevan/Tree-Binary-0.07/lib/Tree/Binary/Search.pm , and even with a very cristal example of how to use at the beginning (I didn't need to know all the algorithmics of the BST, just use it), and I can be sure that if it's in CPAN this is a good code (tested by CPAN testers, not like python wikipedia one).

Welcome to Perl. I recommend you mastering regular expressions and also learn something about the perl command line (perldoc perlrun), you can do amazing things with one line in Perl. For example,


perl -pi -e 's/FOO/BAR/' foo.txt

will replace FOO by BAR in the file foo.txt.

slavik
May 11th, 2009, 12:53 AM
fyi, fot the more complex stuff, there are also simple modules, like XML::Simple, IMAP::Simple and such.

ghostdog74
May 11th, 2009, 06:26 AM
For example, the other day I needed to use a Binary Search Tree in python. I googled and I didn't found anything easily useful after visiting more than 5 webs. The wikipedia code was wrong ( I had to correct it, and still have some bugs ).
depending on what you really want to do, some of the things in Python like sets, bisect can be used. also look here (http://groups.google.com.sg/group/comp.lang.python/search?hl=en&group=comp.lang.python&q=binary+search+tree&qt_g=Search+this+group)