Re: Extracting data from SimpleList
- From: muppet <scott asofyet org>
- To: Scott <wwsw3 earthlink net>
- Cc: gtk-perl mailing list <gtk-perl-list gnome org>
- Subject: Re: Extracting data from SimpleList
- Date: Thu, 6 Jan 2005 21:38:22 -0500
On Jan 6, 2005, at 8:16 PM, Scott wrote:
sub shout_it {
@indices = $slist -> get_selected_indices;
foreach $i (@indices) {
print $i . "\n"; # I'd rather print the actual data here.
print "row $i is ".join (", ", @{ $slist->{data}[$i] })."\n";
}
}
Note that even though you have only one column of data
$slist->{data}[$i] is still a reference to an array of columns.
--
"Erections lasting more than four hours, while rare, require immediate
medical attention."
-- Commercial for a viagra-like drug.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]