package Module; my $constant = 'foo'; sub f { ... $constant ... } 1;
Given your mention of state, this is probably not quite what you had in mind when you mentioned "simple C-style 'static' storage".
In reply to Re: Real life uses for closures.
by ikegami
in thread Real life uses for closures.
by BrowserUk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |