Hi all,
Excuse me for my poor English because I'm from Russia.
I have the problem with url translation.
There are 2 scripts to do it.
1st script work perfectly, but 2nd failed.
Only difference between them is string my $dbh = DBI-connect...;
I use Apche::DBI but without this module the same
14:56:22 +0200
Subject: Re: Problem with PerlTransHandler
Hi!
On Fri, Jun 27, 2003 at 02:47:45PM +0400, Sergey V. Stashinskas wrote:
sub handler {
my $r = shift;
my $dbh = DBI-connect('dbi:mysql:db', 'user', 'pswd');
$dbh-disconnect;
maybe the DBI-connect isn't
If these lines are commented out then script is working ok.
-Original Message-
From: [EMAIL PROTECTED]
To: Sergey V. Stashinskas [EMAIL PROTECTED],[EMAIL PROTECTED]
Date: Fri, 27 Jun 2003 16:39:12 +0300
Subject: RE: Problem with PerlTransHandler
Have you tried to comment out the 2
})(.*)/;
$r-subprocess_env(SESSION = $1);
$r-uri($2);
return DECLINED;
}
1;
-Original Message-
From: Raf [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Fri, 27 Jun 2003 15:09:13 - (GMT)
Subject: Re: Re[2]: Problem with PerlTransHandler
Sergey V. Stashinskas said
2003 15:35:16 - (GMT)
Subject: Re: Re[4]: Problem with PerlTransHandler
Sergey V. Stashinskas said:
Problem is not in connection with database.
When I try to connect then $2 regexp variable becomes undefined and
script can not redirect anywhere. ($r-uri($2)) But when script