... Made the changes suggested, but the problem persists. :) If you want to solve this you will need to post real code that really shows the real problem oh? you say your code is too long? well you trim trim trim until the problem disappears, or you have short self contained compilable test case that shows the bug
OTOH, what version of CGI.pm do you have installed?
| [reply] |
That is the real code, but I changed the names of the variables to protect the innocent and make it easier to understand/read in general.
The only thing that's not included is the library code (other modules). If it's useful or helpful, let me know and I'll share the functions from those libraries.
The SQL code returns two rows:
a,b,c
d,e,f
Quite often, and especially if run in rapid succession, the output of "list" will be:
a,b,c
d,e,f
a,b,c
d,e,f
| [reply] [d/l] [select] |
That is the real code, but I changed the names of the variables to protect the innocent and make it easier to understand/read in general. But its incomplete, there are missing parts, there is nothing obvious to point to as the cause of the problem, see How do I post a question effectively?
You say shebang, initialization ... "do" etc. well that could be someting, but it could be nothing
Could be browser reloading HTTP request because you're not Post/Redirect/Get or any other kind of braino results
| [reply] |
You could try a single fetch statement
my $list = "";
my $ar = $hStmt->fetchall_arrayref();
for (@$ar){
$list .= (join ',',@$_).';';
}
print $list;
poj | [reply] [d/l] |