Coder's Guild Mailing List

RE: Does Perl have virtual functions?

Posted by Nick Ing-Simmons on 1999-11-22

Frank Hale <frankhale@xxxxx.xxx> writes:
>> 
>> sub parse_headlines
>> {
>>  my $self = shift;
>>  $delf->Callback(-parser => ...);  
>> }
>> 
>
>Where did you get Callback from? 

Tk::Widget

>I am not
>understanding this code fragment? 

I think it is that you are not fully comprehending it.

>If I have a
>reference to a method how do I call it as a method and
>execute its code?

The various types of callbacks - including widget methods, other object 
methods, closures, subroutine references and passing them arguments is 
supposed to be documented in Tk???.???/pod/callbacks.pod 

-- 
Nick Ing-Simmons <nik@xxxx.xx.xxx>
Via, but not speaking for: Texas Instruments Ltd.

Sponsored by Wrox Press - www.wrox.com. Programmer to Programmer (TM)