Mihai Razvan wrote:
Hi list,
Two things:
1. Symbols defined in global.asa do not get imported in asp scripts. Example:
-- code --
our $dbh;
sub Script_OnStart {
$dbh=DBI->connect(...);
...
our seems not to have the same properties as a global, it seems
more like an extended my() upon reading the perldoc.  I have never
used it, so don't really know its limitations.

You might try using an old style global like:

use vars qw($dbh);
sub Script_OnStart {
     $dbh=DBI->connect(...);

This is how I get globals shared across scripts.

Regards,

Josh
________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to