Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Programming Perl

by nemesdani (Friar)
on Oct 11, 2012 at 07:37 UTC ( #998384=note: print w/ replies, xml ) Need Help??


in reply to Programming Perl

Athanasius gave you excellent advice. I also suggest that you read Modern Perl by chromatic, it really helped me to develop a more Perlish style of thinking. For me, one of Perl's greatest strength lies in its idioms.


I'm too lazy to be proud of being impatient.


Comment on Re: Programming Perl
Select or Download Code
Re^2: Programming Perl
by McA (Curate) on Oct 11, 2012 at 09:20 UTC

    Hi,

    I can only endorse to that. What I think is pretty interesting is that Athanasius emphasizes the usage of idioms. The python fans always emphasize the usage of the "one-and-only-correct-idiom". I have to admit that I think that the allways stated TIMTOWTDI in Perl is a simple fact but not a perfect advice to get a good programmer in Perl.

    Start to study code on CPAN where you know that's newer code and it's well rated. You will soon get a feeling for readable code. And you will find repetitions of hopefully good idioms.

    I underrated map and grep for a long time. Look at their power.

    My last advice: I would have been happy having a good perl programmer as a mentor. I never had the oportunity. Why do I advice this: You need someone experienced who tell you what you have to think about programming for the long term. You have to comprise aspects you don't even know about when starting programming. (That's true not only for Perl.) Don't bother for throw away scripts, but over the time your own code starts to be a bundle of idioms or C&P templates. If you did it wrong you transport wrong approaches all over. Best example for that. You find many Perl documentation where the instantiation is done like

    my $obj = new Some::Class;
    which is not 100% percent correct. When you look at newer questions here in the forum you can find exactly this "wrong" idiom in questions. Why: It's Copy & Paste. That's normal. So, take care that your own C&P templates are as good as possible.

    When we are with books: Look at Higher-Order-Perl (http://hop.perl.plover.com/) which is meanwhile for free. I spent money for that years ago and NEVER regret it.

    Best regards
    McA

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998384]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2014-08-23 00:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (168 votes), past polls