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

Does anyone have 'functioning' code from the Catalyst book? I've downloaded the supposed 'fully functioning' code from the author, as well as the code from the publisher and neither work. In my case I'm currently on chapter 5, I noticed that only the first person is properly updated in all the tables (the pid column is NULL in the nickname tables for all subsequent users). This is also odd as the book code has PID as 'NOT NULL' while the example code and errata say to drop the 'NOT NULL' which allows the first test to work, but subsequent users fail. Thinking this was my fault, I diff'ed my code against the authors code and found no errors, I then ran his code from Chapter 5 (There was no example db!) So I tried the enhanced one from Chapter 8 (The 'correct' db was empty with no tables, 'database2' had valid data so I used that) and unfortunately I see the exact same bug with the example code. Has anyone actually finished this book and compiled a full working example set that I can compare my code against to find bugs? This book is full of bugs, but it's the only one out there and I'm really interested in learning this subject. Maybe I'm still doing something blatantly wrong, but I can't find it :) Any help would be appreciated. ~P

Replies are listed 'Best First'.
Re: Catalyst Book Code
by kyle (Abbot) on May 07, 2008 at 03:03 UTC
Re: Catalyst Book Code
by Your Mother (Archbishop) on May 07, 2008 at 05:57 UTC
      Thanks, as I said though, I already downloaded both the authors code and the code from packt. Both of which are flawed. The wiki has been a lot of help, but it's still not 100% either.
Re: Catalyst Book Code
by Anonymous Monk on May 07, 2008 at 03:57 UTC
Re: Catalyst Book Code
by Anonymous Monk on May 07, 2008 at 03:58 UTC