Skip to main content.
home | support | download

Back to List Archive

Filter question on spider.pl

From: <redna(at)not-real.euskalerria.org>
Date: Wed Dec 10 2003 - 12:47:21 GMT
Hi all:

I've defined a callback function in filter-content, and this function calls
another function. My problem is that when I return the filtered text, I get
a value like this SCALAR(0x99137DC). What's wrong? Can anyone help me?

This is my configuration:
.
.
.
filter_content => sub {
                   my $content_ref = $_[3];                    
               ($kont,$$content_ref)=\&Clean($$content_ref);
               #If I now print $$content_ref I get SCALAR                  

               #(0x99137DC) 
                   .
                   .
                   .
}

Clean
{
$cleaned_text=shift;
$kont;
#some code here
.
.
.
# If I print here $cleaned_text It's OK
return ($kont,$cleaned_text);
}

_________________________________________________________
Txat euskalduna >>> http://www.euskalerria.org/solasgunea
Received on Wed Dec 10 12:47:37 2003