in reply to
Re^2: my variables in a subroutine
in thread
my variables in a subroutine
Semantics, one man's hack is another's feature. I view it as a hack because it fulfills functionality missing from the language, i.e. a 'state' variable type (aka 'static') (and if it wasn't a missing feature then it wouldn't have been added).
Comment on
Re^3: my variables in a subroutine
Replies are listed 'Best First'.
Re^4: my variables in a subroutine
by
Anomynous Monk
(Scribe)
on Mar 23, 2009 at 16:38 UTC
That's not a hack, it's a Design Pattern!
[reply]
In Section
Seekers of Perl Wisdom