Additional: Matt Trout spotted that omitting the () prototype from the
sub returned by memoise is another way to make it operate correctly on
all perl versions.
I've also tried it on 5.005 and 5.004, and they both operate correctly.
-zefram
Re: [perl #63540] perlbug AutoReply: bizarre closure lossage
by Zefram