Scope of variables in a function

James Laver james.laver at
Sat Jun 1 19:03:18 BST 2013

On 1 Jun 2013, at 18:23, Dirk Koopman <djk at> wrote:

> It is very annoying. The more so because this is an artefact that is (apparently) relied on by a lot of legacy code.
> Quite a lot of other perl artefacts have been deprecated and then removed. Why does this one persist? In what way is it useful or intuitive?

We did formalise an alternative, in the form of :state, but I don't know about how well it's used. It also incurs a performance penalty that people are presumably unhappy about (but then one assumes it's also incurred by the informal version too…)


More information about the mailing list