Below I post the answer as given me by Mark Jason Dominus, the author of "Higher Order Perl" himself. This is the complete text of his reply to my e-mail, quoted here with permission. His reply not only includes the correction to my code, but in doing so clearly explains the cryptic error message as well. I wanted to post it as warning of the kinds of problems one can run into when using recursion if one is not careful.
...
User Profile
Collapse
-
Oops, please don't be put off in the above post by the fact that I have two print_instructi on subroutines defined. This is not the case in practice. I just copied that code above the call to hanoi() without deleting it from below. Thanks.Leave a comment:
-
Error when using coderefs.
Hello,
I am trying some code from Higher Order Perl by Mark Jason Dominus and it doesn't work. When I tried to replace the original print statements with a reference to a subroutine (print_instruct ion) that prints, I kept getting the error message "Undefined subroutine &main:: called at hanoi.pl line 27." Line 27 is marked in the code below in a comment (it shows as line 21 in the posting below). It doesn't like the... -
No current record after delete
I saw the keywords in my title elsewhere, but it didn't answer my question. In Access 2000 on WIndows XP Pro, I have a multiple table join query as the basis for a form. When I delete a single record (row) from the form (.delete) in VBA, then I try do do another one, it says, "No Current Record." The record selector on the form points to a record (the next record). How can I make it the current record? Thanks.
No activity results to display
Show More
Leave a comment: