ismywb has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, I'm ismywb and I am a PHP Programmer. My co-workers have informed me it is a hideous language, and I am working to learn Perl. What are some good documentation sites? I know this site clearly, which will be immensely helpful, however I'm looking more for a self help site. I am also looking for projects that will help me learn Perl. Does anyone have any suggestions?

Replies are listed 'Best First'.
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.

    Neil Watson
    watson-wilson.ca

      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
Re: Perl Documentation / Learning Projects
by AppleFritter (Vicar) on Jun 25, 2014 at 21:34 UTC
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.

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    
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.


    check Ln42!

      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.
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.
      Yes a valuable book, but not for the beginner!
      Bill
        Hrm, is this book something useful for someone who already know PCRE? I have used PCRE extensively with PHP.