Re: why can't I get data from DBM in mod_perl

2006-11-24 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Nov 24, 2006 at 11:57:58AM +0100, D. Bolliger wrote: > [EMAIL PROTECTED] am Freitag, 24. November 2006 11:27: > > [snipped] > > Watch this: > > | [EMAIL PROTECTED]:~$ perl > > | use DB_File; > > | > > | tie my %dbh, 'DB_File', "foobar" ||

Re: why can't I get data from DBM in mod_perl

2006-11-24 Thread D. Bolliger
[EMAIL PROTECTED] am Freitag, 24. November 2006 11:27: [snipped] > Watch this: > | [EMAIL PROTECTED]:~$ perl > | use DB_File; > | > | tie my %dbh, 'DB_File', "foobar" || die "Argh: $@"; > | $dbh{'one'}=1; > | $dbh{'two'}=2; [snipped] Hello Tomás This won't die if the tie failed, because of

Re: why can't I get data from DBM in mod_perl

2006-11-24 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Nov 24, 2006 at 04:47:21PM +0800, silent wrote: > Hi all, > I need help with mod_perl: > My ENV is redhat ES4 + apache2.0.59 + mod_perl2. > > I wrote a small script: > > package myconf; > > use strict; > use warnings; > u

why can't I get data from DBM in mod_perl

2006-11-24 Thread silent
Hi all, I need help with mod_perl: My ENV is redhat ES4 + apache2.0.59 + mod_perl2. I wrote a small script: package myconf; use strict; use warnings; use DB_File; use Fcntl; use Apache2::Const -compile => qw(:common); use Apache2::Request (); use Apache2::Connection (); use