in reply to Where are those memory leaks?
looks odd. $sth->fetchrow_array() returns an array, but you are evaulating that in scalar context, so $long_string contains the length of the array, which is always 1 for your select statement. A simpler example:my $long_string = $sth->fetchrow_array();
% perl -e'@a=(2); my ($b) = @a; print "$b\n";' 2 % perl -e'@a=(2); my $b = @a; print "$b\n";' 1
-Mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Where are those memory leaks?
by jZed (Prior) on Mar 24, 2004 at 04:56 UTC |