On Thu, 27 Dec 2007 23:43:32 +0000, Ben Morrow <>
wrote:
>What you are looking for is not state vars, but 'my sub'. There has been
>a slot for this in the Perl grammar for a long time, but noone has ever
>implemented it.
For the record I had asked this quite some time ago:
http://perlmonks.org/?node_id=489881
To which dave_the_m replied:
: The perl5 parser has had a placeholder for lexical subs for quite a
: while [...] and a pad can quite happily accomodate them.
: The main things holding them up has been trying to agree their
: semantics, then someone - probably me - finding the time to implement
: them

.
Actually, I included it in my 5.12 wishlist @ PM:
http://perlmonks.org/?node_id=634043
Funnily enough, the issue has popped up again in a vaguely related
thread exactly today:
http://perlmonks.org/?node_id=659258
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
..'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,