in reply to Undef doesnt work?This has got me stumped
but it is clear here that $blah in the "object" retains this as does $testob??You are in fact modifying the package variable $blah, and like all package variables, are visible throughout the execution of the program. Whereas a new instance of $testob is being created every time as indicated by the value of $self->{blah} always being at 1 post-increment. See. perlobj for more info on objects in perl.
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Undef doesnt work?This has got me stumped
by pike_uk (Initiate) on Feb 09, 2004 at 10:29 UTC | |
by broquaint (Abbot) on Feb 09, 2004 at 10:35 UTC |