in reply to POE OO sessions - accessing overwritten methods
You need to always shift off $self if you're going to use @_ again.:
$self has to be the first param, so your OBJECT is kinda redundant, IMOsub client_start { my $self = shift; # this is an overwritten method!!! my ($kernel, $heap, $session) = @_[ KERNEL, HEAP, SESSION ]; # child code goes here # [...] # now, access the overwritten parent method $self -> SUPER::client_start( @_ ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: POE OO sessions - accessing overwritten methods
by m-rau (Scribe) on Feb 12, 2005 at 10:44 UTC | |
by Tanktalus (Canon) on Feb 12, 2005 at 15:30 UTC | |
by m-rau (Scribe) on Feb 12, 2005 at 16:29 UTC | |
by Tanktalus (Canon) on Feb 12, 2005 at 16:48 UTC | |
by BrowserUk (Patriarch) on Feb 12, 2005 at 18:53 UTC | |
| |
by BrowserUk (Patriarch) on Feb 12, 2005 at 18:54 UTC |