http://qs321.pair.com?node_id=656868


in reply to Re^2: Why should I use perl 5.10?
in thread Why should I use perl 5.10?

I think the OP means "state variables" as that's what they are called in Perl 6. The declarator is the word state too.

sub foo { state $x = 0; # $x will retain it's state through # successive invocations of foo() # ... }
(Yes, other languages use the keyword static, but this is Perl!)