germain garand
-
2002-10-05
- status: open --> open-invalid
I'm also having trouble using eval to call a function
declaired in the parent class. The problems are likely
related, and this one is easier to make a test case for.
Please refer to request ID 613509 for the sample
program.
# in Bli.pm
sub bla {
eval "SUPER->bla(@_);";
SUPER->bla(@_);
print "@_\n";
}
bash-2.05a$ perl bli.pl
Bareword found where operator expected at (eval 1) line
1, near "from Blo"
(Do you need to predeclare from?)
from Blo
Blo::bla this Bli=HASH(0x839a4e4)
from Blo
Bli::bla this Bli=HASH(0x839a4e4)