You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Sergey V. Stashinskas" <se...@mail.ru> on 2003/06/27 15:35:50 UTC

Re[2]: Problem with PerlTransHandler

DBI->connect is working ok.
Strange problem is with regexp.
If "DBI->connect ..." string is present in script then $1 ok but $2 is undefined.
Otherwise $1 and $2 have real normal values.


-----Original Message-----
From: Thomas Klausner <do...@zsi.at>
To: modperl@perl.apache.org
Date: Fri, 27 Jun 2003 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 working and thus your script dies / throws some
> error ? 
> 
> I'd try to check if connect works, if $dbh works, etc.
> 
> -- 
> #!/usr/bin/perl                               http://domm.zsi.at
> for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
>