It is almost certainly some limit on the number of connections that you have to the database - I think you will find that if you move the :
outside the foreach loop then all your troubles will go away.my $dsn = 'DBI:mysql:*database*:localhost'; my $db_user_name = '*username*'; my $db_password = '*password*'; my $dbh = DBI->connect($dsn, $db_user_name, $db_password);
/J\
In reply to Re^4: Peculiar Behaviour with DBI and MySQL
by gellyfish
in thread Peculiar Behaviour with DBI and MySQL
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |