in reply to Old Code reference wants new life as Object.
Build a small wrapper function.
my $self = ...; $dispatch{status_form} = sub { $self->status_form(@_) };
If I'm out to lunch, feel free to tell me that as well.
Not at all. Callbacks are frequently done this way in Perl.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Old Code reference wants new life as Object.
by Devanchya (Beadle) on Dec 09, 2006 at 01:55 UTC | |
by ikegami (Patriarch) on Dec 09, 2006 at 02:03 UTC |