problems when prepending elements to a clist



hi
I have the following code:

 sub parse_xml{
   open(RDF, 'slashdot.rdf');
   my $content = do{local $/; <RDF>};;
   my(%result, @tmp);
   parseXML(\%result, \$content);
   foreach my $item (@{$result{'items'}}) {
     print ($item->{'title'});
     push @tmp, [ $item->{'title'} => $item->{'link'}];
   }
   $clist->prepend(@tmp);
 }


but in my clist I only get gibberish like ARRAY(0x81ab5b8).
what do I do wrong? I can print the $item->{title} and {link} without
problems. 

-- 
Kim Schulz - Freelance Development    | There's one fool at least in
www.schulz.dk  - En nørds bekendelser | every married couple. 
www.linuxia.dk - hverdagens små hacks | 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]