in reply to (tye)Re: typo in camel 3
in thread typo in camel 3

The code as written in the book (well, a reasonable facsimile, anyway) works for me.

Are you sure about that? The code as written has mismatched parentheses. You either need to make the suggested change or remove the parenthesis after -1.

--
<http://www.dave.org.uk>

"Perl makes the fun jobs fun
and the boring jobs bearable" - me

Replies are listed 'Best First'.
(tye)Re2: typo in camel 3
by tye (Sage) on Apr 10, 2001 at 18:32 UTC

    I mentally removed the trailing paren when retyping the example. Mea culpa.

    ...and I read that line at least 6 times trying to figure out what could be wrong with it (since jptxs bothered to post about it) before I rewrote it. Comparing the lines I noticed changes to parens at both ends and never recovered from my assumption. /: Dang you, jptxs, next time at least mention "unbalanced", will ya?? (:

            - tye (but my friends call me "Tye")