perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomáš Bažant <tbaz...@suse.cz>
Subject mod_perl / CGI.pm and 'our' variables
Date Tue, 21 Jul 2009 07:29:36 GMT
Hi 

i'm new here and have a problem i have not been able to solve for 2 days
now:

i'm writing a web application using %SUBJ% and would like to set 'our
$dbh = ...' so that i do not need to pass db handler as an argument to
functions in different packages every time i need. but this 'global'
variable is not seen inside imported package as $::dbh (as it is in
normal non-mod_perl application).

Any idea?



-- 
Tomáš Bažant <tbazant@suse.cz>
Novell, SUSE Linux s.r.o.


Mime
View raw message