use Test; my $test = new Test; print "test is " .$test ."\n"; print "test getValue after new is " .$test->getValue() ."\n"; $test->setValue(1); print "test getValue after setValue(1) is ". $test->getValue() ."\n"; print "\n"; my $test1 = new Test; print "test1 is " .$test1 ."\n"; print "test1 getValue after new is " .$test1->getValue() ."\n"; #print "test getValue after test1->new is ". $test->getValue() ."\n"; $test1->setValue(2); print "test1 getValue after setValue(2) is " .$test1->getValue() ."\n"; print "test getValue after test1->setValue(2) is ". $test->getValue() ."\n";