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

In reply to Catalyst Book Code by phoose

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.