Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#8 can't eval SUPER

closed-invalid
nobody
None
5
2002-10-05
2002-10-03
Andrew Snyder
No

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)

Discussion

  • germain garand
    germain garand
    2002-10-05

    • status: open --> open-invalid
     
  • germain garand
    germain garand
    2002-10-05

    • status: open-invalid --> closed-invalid