http://www.perlmonks.org?node_id=928910


in reply to Re^4: Anonymous function called in forbidden scalar context
in thread Anonymous function called in forbidden scalar context

Chapter 3 of Higher Order Perl develops the memoize technique and the module - I recommend reading it if you are interested in how memoization works.

  • Comment on Re^5: Anonymous function called in forbidden scalar context

Replies are listed 'Best First'.
Re^6: Anonymous function called in forbidden scalar context
by dreadpiratepeter (Priest) on Oct 01, 2011 at 13:45 UTC

    Actually, I would recommend it in general if you want to become a better programmer. It is an amazing book.

    It really helps you to break out of procedural thinking and learn new techniques.



    -pete
    "Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."