In your function hello2() you need to call hello() function with $self not with $bbb, as $self already has the BBB package object.
sub hello2{ my $self=shift; #$bbb->hello(); $self->hello(); }
In reply to Re^3: Export global variables not working correctly
by vinoth.ree
in thread Export global variables not working correctly
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |