in reply to Re^2: Initialization of "local static" (style question)
in thread Initialization of "local static" (style question)

One option would be to use closures.
## DOC: returns a function that does that and that. sub ff { my $myval=myfunc(); ... sub { g(++$myval) } } ... my $f = ff; ... my $x = $f->();
[]s, HTH, Massa (κς,πμ,πλ)