Hi,

first, thanks fro your answer!

Wiggins d Anconia schrieb:


[...]


Your 'dbh' is lexically scoped, which means it goes out of view at the
end of the file, therefore it will not be available for use in your
subroutine.  Using either 'our' or 'use vars' will fix the symptom, see
below for more about the problem...

I see; ok. ;-)


In your sub you are using $dbh as a global, don't do that. You should
either pass everything you will need in your sub into your sub as
arguments, or consider switching the sub into a method of an object and
storing the data structure as the object's attributes. Assuming you
don't want to do the latter right away since it is a paradigm shift,



[...]


Why donīt use $dbh as a global? Now in this way it works for me at this time!

Thanks again!

Cheers
Peter


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to