Re: mod_perl / CGI.pm and 'our' variables

2009-08-05 Thread Perrin Harkins
2009/8/5 Tomáš Bažant : > yest that works for me if all the packages are in the same file, but if > i put the Bar package into a separate file and import it with 'use' > directive, $::dbh always returns undef. or could it be that i am using a > closure? i'll try to avoid closures... It's not a clo

Re: mod_perl / CGI.pm and 'our' variables

2009-07-27 Thread Perrin Harkins
2009/7/21 Tomáš Bažant : > 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 (

mod_perl / CGI.pm and 'our' variables

2009-07-21 Thread Tomáš Bažant
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' varia