Where reread_conf has the config hash for that app. Would this work? I haven't tested it myself and would be interested to know.use strict; use DBI; use vars qw( %conn ); sub connect { reread_conf("./config"); my $server = $config->{server}; my $db = $config->{db}; $conn{$db} ||= DBI->connect("dbi:$server:$db", ...); } my $dbh = connect();
In reply to Re: mod_perl and Global Variables
by steveAZ98
in thread mod_perl and Global Variables
by davemabe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |