"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> This loop never ends!
Because the iterator ->fetchrow_hashref returns one scalar undef when done. But a list assignment (...) = ... is only false if the list is empty. ° It might have been better to return an empty list. This would have worked similarly well in list as scalar context. But it's only supposed to return one scalar - the mentioned hashref - anyway.
Cheers Rolf °) see also Re: list context (iterators) In reply to Re^2: my $x or my ($x)
by LanX
|
|