Re: Perl Documentation / Learning Projects
by neilwatson (Priest) on Jun 25, 2014 at 19:11 UTC
|
Agree with Jeffa, that most languages are what you make of them. The Modern Perl
books is a good place to start learning. I've been using the Mojolicious web framework and I'm happy with
it.
The key to learning Perl is to
use warnings;
use strict;
in every program. These will help you identify errors and dodgy code, and improve your code for others.
| [reply] [d/l] |
|
|
Thanks. I'm currently at YAPC. but I'm having issues with cpan, (cpanm works) at the moment, but thats a issue for another topic.
Web apps are nice, however my job wouldnt have much use unfortunatly.
I have also extensively used PHP CLI so web vs cli doesnt mean much to me.
Next month Brian D Foy is coming to my company to teach perl, and I am signed up for that
| [reply] |
|
|
| [reply] |
Re: Perl Documentation / Learning Projects
by AppleFritter (Vicar) on Jun 25, 2014 at 21:34 UTC
|
Well, you already found the Monastery (i.e. Perlmonks), arguably the best site for learning Perl. ;) The perldoc site is very useful as a reference, as is perl.org itself. CPAN is a treasure trove (and meta::cpan is a great way of accessing it). That's about what I can think of right now; no doubt other, more experienced monks will know more.
Just because I love killing trees (or electrons, as the case may be), here's some suggestions for books as well, both old and new:
There's also many books dedicated to specific topics such as Perl/Tk, DBI, Perl and XML, CGI programming with Perl, and much much more.
| [reply] |
Re: Perl Documentation / Learning Projects
by jeffa (Bishop) on Jun 25, 2014 at 18:25 UTC
|
I don't think PHP is a hideous language at all. I have seen plenty of Perl code that is far more hideous, although the quality standards bar tends to be a bit lower from PHP coders in general.
Since you are a PHP programmer, i am going to presume that you are keen in web programming. You should check out Perl Dancer which is a micro framework for creating web apps. This might allow you to learn Perl in an environment you are more accustomed to.
You'll also need to learn how to install all of this stuff. I recommend starting with Perl Brew and use cpanm to install your CPAN modules.
| [reply] [d/l] [select] |
Re: Perl Documentation / Learning Projects
by ww (Archbishop) on Jun 26, 2014 at 03:44 UTC
|
Some of the very best resources can be found in CS departments at colleges and universities... and in many cases, those are available, on-line, to the general public and free-of-charge. Your favorite search engine can help you if you provide reasonable search strings -- perhaps, for example Perl tutorial university or the like.
And don't miss the tutorials here... nor the fact that when you have installed Perl you have, in most cases, installed a very comprehensive set of docs, many of which provide example code.
| [reply] |
|
|
Thanks ww!
I have searched, but ideally, I don't like tutorials in the traditional sense.
What works best for me is finding a project to do, and just doing it. Then, I can work my way through what I will need for it. I was thinking of doing a webchat script, but I feel I should get a handle on CLI before I play with CGI.
And yes! perldoc is great! If the module (even from cpan)provides it, its a great resource. :)
On the advise of boftx I made a perl script which finds world-writeable files under the homedir, and removes that bit. That was fairly easy, once I understood the code.
| [reply] |
Re: Perl Documentation / Learning Projects
by Anonymous Monk on Jun 25, 2014 at 19:47 UTC
|
Read "Mastering Regular Expressions" by J.Friedl if you haven't already. Yes, it's not about Perl. Yet it is. | [reply] |
|
|
Yes a valuable book, but not for the beginner!
| [reply] |
|
|
Hrm, is this book something useful for someone who already know PCRE? I have used PCRE extensively with PHP.
| [reply] |