"be consistent" | |
PerlMonks |
Re: Something like c++'s static?by BUU (Prior) |
on Aug 02, 2002 at 17:00 UTC ( [id://187149]=note: print w/replies, xml ) | Need Help?? |
you probably want something like this:
But note that '$static' is completely hidden unless your class has an accessor method. Or you could just use a class global, in the form of '$baz::foo=12;'
In Section
Seekers of Perl Wisdom
|
|