Hello,
Maybe someone could please tell me how can I acquire a subroutine
reference for a class member? Basically I need this reference to pass as
a parameter for curl's setopt function:
....
$this->{curl}->setopt(CURLOPT_HEADERFUNCTION, ....reference to
header_function....);
....
class also have this header_function declared as(for example)
sub header_function {
my ($this,$chunk, $context) = @_;
return length($chunk);
};
????????
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>