in reply to Re^2: Export global variables not working correctly
in thread Export global variables not working correctly
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(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Export global variables not working correctly
by Anonymous Monk on Mar 06, 2015 at 06:33 UTC |