I can do this using "our" in place of "my" - after perl 5.6.
how do I: { package ThePackage; use strict; my $dbh=$HTML::Mason::Commands::dbh; sub printdbh { print "$dbh\n"; } sub otherSub { print ref $dbh, "\n"; } sub anotherSub { dosomething($dbh);} } Thanks again everyone! Ryan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>