perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@tuxteam.de
Subject Re: why can't I get data from DBM in mod_perl
Date Sat, 25 Nov 2006 05:29:43 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Nov 24, 2006 at 11:57:58AM +0100, D. Bolliger wrote:
> tomas@tuxteam.de am Freitag, 24. November 2006 11:27:
> 
> [snipped]
> > Watch this:
> >  | tomas@herr-turtur:~$ 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 the 
> operator precedences in this statement.
> 
> Either use 
> 
> tie (my %dbh, 'DB_File', 'foobar') || die "Argh: $@";
> 
> or 
> 
> tie my %dbh, 'DB_File', 'foobar' or die "Argh: $@";

Yep, you are quite right. Mindless cut&past on my part. Thanks.

regards

- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFZ9THBcgs9XrR2kYRAmS0AJ9Yu1GBr6hTaKek9SNgaSy1JtIOxwCfXbBw
2RrHVfIxz8tWT1Y+J7gngFU=
=zwnB
-----END PGP SIGNATURE-----


Mime
View raw message