If you'd used strict and warnings you'd have gotten griped at that you're accessing the undeclared variable %self. You want to be dereferencing the hashref in the scalar $self instead (i.e. $self->{theValue}).
In reply to Re: Perl class - how to create instance variable instead of class variable
by Fletch
in thread Perl class - how to create instance variable instead of class variable
by richb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |