[Melbourne-pm] Memoize subroutine annotations

Toby Corkindale toby.corkindale at strategicdata.com.au
Wed Jun 2 20:34:01 PDT 2010


Memoize is useful, but having to specify routines seems a bit backwards.
ie.
   sub my_subroutine { .. do stuff .. }
   memoize('my_subroutine');

Luckily, you can enable a method annotation instead, with 
Attribute::Memoize:

ie.
   sub my_subroutine :Memoize { .. do stuff .. }


tjc


More information about the Melbourne-pm mailing list