Subject: | functions cannot be memoized prior to declaration |
Distribution: Method-Signatures-Simple-1.07
Perl version: v5.14.2
Operating System: Ubuntu 12.04.3 LTS
Hello. Unlike subs, functions cannot be memoized prior to declaration.
$ perl -MMethod::Signatures::Simple -MMemoize -e 'memoize q(foo); func foo($bar) { return }'
Cannot operate on nonexistent function `foo' at -e line 1
$ perl -MMethod::Signatures::Simple -MMemoize -e 'memoize q(foo); sub foo { return }'
$