in reply to Re: [Solved]: Can we use print <<HTML; twice in same file?
in thread [Solved]: Can we use print <<HTML; twice in same file?

You should change your SQL so it only fetches the data you want. Alternatively, see DBI.pm#selectcol_arrayref

.
The way forward always starts with a minimal test.