Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re{2}: Mastering Perl 5 by Eric C. Hermann

by staeryatz (Monk)
on Dec 01, 2001 at 01:48 UTC ( #128756=note: print w/replies, xml ) Need Help??

in reply to Re: Mastering Perl 5 by Eric C. Hermann
in thread Mastering Perl 5 by Eric C. Hermann

Herrmann DOES encourage using strict and -w. It's one of the first things he mentions near the beginning of the book, before teaching how to code. The whole second chapter of the book is dedicated to debugging, making your code easier to debug, how to follow "Good Coding Practices", and "Avoiding Common Perl 5 Mistakes". It also shows how to debug in Emacs, in ActiveState Windows Debugger, and Debugging CGI programs.

Yes, it does explain all the return values of localtime (page 862). An array that contains the following in order:

  • The seconds from 0 to 60

  • The minutes from 0 to 60

  • The hour of the day from 1 to 12

  • The day of the month from 1 to 31

  • The month of the year from 0 to 11

  • The year in four-digit format

  • The day of the week from 0 to 6

  • The day of the year from 1 to 365

  • Whether or not it is daylight saving time (1 indicates true)

  • Sorry no that I've seen. Herrmann shows how to roll your own CGI scripts, and how to decode the HTTP headers yourself (and what it actually is doing). Later on, it shows how to protect your CGI scripts from possibly being exploited by hackers by filtering meta-characters from text entries, which can be used to escape the CGI code and start shell commands on the server.

    CPAN? Yes indeed. At the time this book was written, Herrmann referred to it as in the introduction of the book (unfortunately this address has been depreciated since then). Other websites and Perl newsgroups are also listed.

    The book also shows some pretty nifty advanced Windows things, like how to load DLL's and call their functions, and calling the Win32 API functions. Please don't tell me that this is beginner stuff...

    • Comment on Re{2}: Mastering Perl 5 by Eric C. Hermann

    Replies are listed 'Best First'.
    Re: Re{2}: Mastering Perl 5 by Eric C. Hermann
    by davorg (Chancellor) on Dec 01, 2001 at 13:59 UTC

      Actually, localtime returns a list not an array. Either the author got that wrong or he didn't differentiate between the two well enough for you to pick understand that there is a difference.

      Also, the year is not returned as four digits. It is the number of years since 1900 (currently 101).

      The CGI information sounds a bit flakey to me. Does he mention taint mode at all?

      I don't understand why he references CPAN thru a third-party URL that is liable to change or disappear. Why not use one of the Perl community's own URLs of or

      On the basis of this test the book looks like something that I couldn't recommend, but I should probably get hold of a copy and send a review to the publishers.

      Thanks for bringing it to my attention.


      "The first rule of Perl club is you do not talk about Perl club."
      -- Chip Salzenberg

    Log In?

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

    How do I use this? | Other CB clients
    Other Users?
    Others musing on the Monastery: (5)
    As of 2023-09-30 00:11 GMT
    Find Nodes?
      Voting Booth?

      No recent polls found