Re: problems when prepending elements to a clist
- From: "Bhaskar S. Manda" <bhaskar cacmnet com>
- To: gtk-perl-list gnome org
- Subject: Re: problems when prepending elements to a clist
- Date: Tue, 07 May 2002 12:42:03 -0500
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]