more useful options | |
PerlMonks |
Re: Real life uses for closures.by ikegami (Patriarch) |
on Feb 14, 2013 at 08:09 UTC ( [id://1018698]=note: print w/replies, xml ) | Need Help?? |
Technically, f is a closure which captures $constant:
Given your mention of state, this is probably not quite what you had in mind when you mentioned "simple C-style 'static' storage".
In Section
Seekers of Perl Wisdom
|
|