logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Sending data to a client with POE: msg#00030

Subject: Re: Sending data to a client with POE
Quoth Jeff Konz <jdkonz@xxxxxxxxx>, on 2004-09-22 20:50:47 -0500:
> When I have this in a subroutine: 
> 
> sub parse {
>     my $heap = $_[HEAP];
>     my $cdr_line = $_[ARG0];
>     print "Input Seen:  $line\n";
>     $heap->{client}->put($line);
> }
> 
> I get the following message:
> 
> Can't call method "put" on an undefined value at tail_poe.pl line 66

Well, it looks like $heap->{client} is probably undef, then?  Where
are you setting it to the relevant wheel or other object?

   ---> Drake Wilson

Attachment: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>