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 <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
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$_.$/}
> 

Reply via email to