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;'package baz; { my $static=1; sub new{return bless my $x;} }
In reply to Re: Something like c++'s static?
by BUU
in thread Something like c++'s static?
by RollyGuy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |