Re: accessing object variables from callback function




Dr.Ruud wrote:
kaisung@xxxxxxxxx schreef:

my $test = MyTest->new();

Variant:

my $test = new MyTest ;

Yes, TIMTOWTDI, but most (not all) Perl experts prefer the ->

print "numTags = $test->{numTags}\n" ;

(which bypasses the method)

(which is bad)

.