in reply to [Solved]: Can we use print <<HTML; twice in same file?
Updated subject to mention this is solved. Also I figured that I had to use first element of @row while it loops through all the rows and use only that element.
So I created a new array @widget and kept adding first element from @row while it iterates over all the rows of result. And finally using elemtnts of this new array.
my @widget; while (my @row = $sth->fetchrow_array) { push(@widget, $row[0]); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [Solved]: Can we use print <<HTML; twice in same file?
by 1nickt (Canon) on Aug 25, 2015 at 19:31 UTC | |
|
Re^2: [Solved]: Can we use print <<HTML; twice in same file?
by poj (Abbot) on Aug 25, 2015 at 19:46 UTC | |
by Perl300 (Friar) on Aug 25, 2015 at 20:04 UTC | |
by poj (Abbot) on Aug 25, 2015 at 20:07 UTC | |
by Perl300 (Friar) on Aug 25, 2015 at 20:16 UTC | |
by poj (Abbot) on Aug 25, 2015 at 20:28 UTC | |
|