perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <>
Subject Re: mod_perl / and 'our' variables
Date Wed, 05 Aug 2009 14:45:34 GMT
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 closure.  You just need to understand Perl's variable
naming and package rules a little better.  If there's something
specific you want to show us, we could probably spot the scoping

- Perrin

View raw message