> Quoting dbsavvy2002-perl:
...
>> #!/usr/bin/perl
>> use strict;
>> use Win32::ODBC;
>>
>> my($db) = new Win32::ODBC('All Records1207');
...
>> sub loopa
>> {
...
>> $db->Close();
...
>> }
>>
>> loopa (4);
>> print"hjgvjyg";
>> loopa (4);

While re-reading my original response, I noticed you are closing the database
object near the bottom of loopa().

It is quite natural that the second call to loopa() fails if you close the
database object it depends on before you exit the first time.  That has nothing
to do with any hash.  This problem would probably have been noticed sooner by
someone here if you had given the exact error message instead of a vague
statement.

--
Mac :})

Reply via email to