[Israel.pm] A Perl 5 Gotcha

Yitzchak Scott-Thoennes sthoenna at efn.org
Fri Mar 6 12:22:08 PST 2009


On Fri, March 6, 2009 12:00 pm, Gaal Yahas wrote:
> If by "shouldn't work" you mean, "it surprises me that it does work",
> that's one thing, but of course it *should* work that way because that's
> how the language is defined. It isn't a design oversight. That's how you
> implement static variables, for example.

Not now that there's a state keyword:
http://perldoc.perl.org/functions/state.html





More information about the Perl mailing list