Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: So what is your Perl book "Trilogy" anyway?

by crashtest (Curate)
on Apr 04, 2010 at 18:39 UTC ( #832727=note: print w/replies, xml ) Need Help??

in reply to So what is your Perl book "Trilogy" anyway?

I would say:

  1. Llama (Learning Perl)
  2. Camel (Programming Perl)
  3. Ram (Perl Cookbook)

For me, these sort of form a nice trilogy because each book has a different style. The Llama is a beginner's tutorial. The Camel is a reference book. And The Ram takes yet another approach with its recipe-style code listings and explanations. In combination, these three books give you three distinctive perspectives to help cover the basics of Perl.

  • Comment on Re: So what is your Perl book "Trilogy" anyway?

Replies are listed 'Best First'.
Re^2: So what is your Perl book "Trilogy" anyway?
by apotheon (Deacon) on Apr 04, 2010 at 19:07 UTC

    Have you read "recipe" books for other languages? If so -- how do you think the Perl Cookbook compares to others? What do you think are the strengths and weaknesses of the Perl Cookbook?

    I haven't really gotten a whole lot of value out of "recipe" programming books in the past, in most cases. The one book that offers a pseudo-recipe approach to what it does that I've found really instructive was Gregory T. Brown's Ruby Best Practices, and that's probably largely because it's only sorta a "recipe" book. I wonder if the Perl Cookbook would actually do me much good.

    print substr("Just another Perl hacker", 0, -2);
    - apotheon
    CopyWrite Chad Perrin

      The Perl Cookbok is awesome IMHO. I just wished there was a newer edition, it has been a while at the second edition :-(

        What exactly do you find to be awesome about it?

        print substr("Just another Perl hacker", 0, -2);
        - apotheon
        CopyWrite Chad Perrin

      I can't say I've got recipe books for other languages - it's something I tend to shy away from because it feels like they come from the copy-paste school of programming. I do like the Perl Cookbook despite that because I find the explanations accompanying the examples to be suitable detailed and interesting.

        Thanks for the information. I'll see if I can find a copy at the local Barnes & Noble, and take a look at some of the explanatory text and see if it catches my interest.

        print substr("Just another Perl hacker", 0, -2);
        - apotheon
        CopyWrite Chad Perrin

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://832727]
[Eily]: you could tie a variable into not having the same value each time, if you like to make people who try to debug your code facepalm
[Corion]: perl -wle 'package o; use overload q("") => sub {warn "str"; ""}, bool => sub{warn "bool"; 1}; package main; my $o={}; bless $o => o; print "Yay" if ($o && !length($o))'
[Corion]: But people writing such code should document the objects they construct and why it makes sense for an object to be invisible as string while being true in a boolean context
[hippo]: That's equal parts clever and horrendous.
[Eily]: the overload version wouldn't return true with "$x" && !length $x though, I guess
[hippo]: The more I look at this code, the more $x is a plain old scalar and the more this condition will never be true. I'm calling it a bug at this point.
[hippo]: Thanks for your input which has soothed my sanity (a little)
[Corion]: Eily: Sure - if you force both things into stringy things, then you break that magic. But that would also mean that you changed the expression, as now $x = 0.00 will be true instead of false as it were before
[Corion]: Ah no, at least in my feeble experiments that doesn't change the meaning
[Corion]: We sell sanity in small packages ;)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-07-27 13:42 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (413 votes). Check out past polls.