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
In reply to Re: Where are those memory leaks?
by kvale
in thread Where are those memory leaks?
by ezekiel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |