Re: problems when prepending elements to a clist



     push @tmp, [ $item->{'title'} => $item->{'link'}];
   }
   $clist->prepend(@tmp);
 }

The prepend() is expecting a list, but @tmp is an array of references to
lists, that is, it's a 2 dimensional array. Also, I'm not sure what you're
putting in the list, it looks like a hash key-value assignment, but this might
be a construct I don't know about. 2-D lists are used in CListModel, perhaps
you're confusing that with CList?

-bhaskar



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