On Tue, Jan 4, 2011 at 8:12 AM, jankes <jankes...@gmail.com> wrote: > my $nowe = $generuj->fetchrow_array;
I haven't had the pleasure of using DBI yet, but CPAN says to exercise caution when using fetchrow_array in scalar context. Perhaps you should switch to list context. Either way, check the status of $generuj->err afterward to see if an error occurred, which should be truthy (is that terminology used with Perl?) if an error occurred. Apparently if an error occurs then fetchrow_array should return an empty list in list context or undef in scalar context, which might explain your result. # I have no idea what language your variables are in so I just # added an 's'. ;) I'm not in a position to say if that's correct or # not. my @nowes = $generuj->fetchrow_array; die "DBI error: $generuj->err: $generuj->errstr" if $generuj->err; ??? -- Brandon McCaig <http://www.bamccaig.com> <bamcc...@gmail.com> V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl. Castopulence Software <http://www.castopulence.org/> <bamcc...@castopulence.org> -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/