Re: Can't call NEXT::f from B::g
- From: Peter Makholm <peter@xxxxxxxxxxx>
- Date: Wed, 30 Jan 2008 14:47:11 +0000
Victor Porton <porton@xxxxxxxx> writes:
$ perl test.pl
Can't call NEXT::f from B::g at /home/porton/t/test2.pl line 10
Why the error?
Doesn't the following except from the documentation to NEXT explains
it?
Note that it is a fatal error for any method (including "AUTOLOAD") to
attempt to redispatch any method that does not have the same name. For
example:
sub D::oops { print "oops!\n"; $_[0]->NEXT::other_method() }
//Makholm
.
- Follow-Ups:
- Re: Can't call NEXT::f from B::g
- From: Victor Porton
- Re: Can't call NEXT::f from B::g
- References:
- Can't call NEXT::f from B::g
- From: Victor Porton
- Can't call NEXT::f from B::g
- Prev by Date: Can't call NEXT::f from B::g
- Next by Date: Re: List of directories within a directory
- Previous by thread: Can't call NEXT::f from B::g
- Next by thread: Re: Can't call NEXT::f from B::g
- Index(es):
Relevant Pages
|