http://www.perlmonks.org?node_id=1018698


in reply to Real life uses for closures.

Technically, f is a closure which captures $constant:
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".