Re: Clist dump to hash...

On 06/27/01 Kit Plummer wrote:
Does anyone know of a way to quickly dump all the contents of a clist into a

Assuming doing it makes sense and the cells contain text only
and the first column contains the keys of the hash:

%hash = map {
        my $row = $_;
        ($clist->get_text($row, 0),
        [map {$clist->get_text($row, $_)} 1..$ncolumns-1])
} 0 .. $clist->rows-1;

or something like that (not tested;-).


lupus debian org                                     debian/rules
lupus ximian com                             Monkeys do it better

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