Hi,
I'm new to Perl/Tk and am having some difficulties writing out information to particular widgets...
here is a code snippet ... and to be honest it is clear to me where I am going wrong however at this stage I am unsure of the syntax to modify...
while (my $val = $sth->fetchrow_array())
{
$label->configure ( -text => $val);
}
... as can be seen from the code, only the last instance of variable, $val is displayed on the label. What I would like is for the label (or some other appropriate widget) to display all results returned by database search.
Any hints or tips is as always(!) appreciated.
Thanks,
SP
I'm new to Perl/Tk and am having some difficulties writing out information to particular widgets...
here is a code snippet ... and to be honest it is clear to me where I am going wrong however at this stage I am unsure of the syntax to modify...
while (my $val = $sth->fetchrow_array())
{
$label->configure ( -text => $val);
}
... as can be seen from the code, only the last instance of variable, $val is displayed on the label. What I would like is for the label (or some other appropriate widget) to display all results returned by database search.
Any hints or tips is as always(!) appreciated.
Thanks,
SP