[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Nov 24, 2006 at 11:57:58AM +0100, D. Bolliger wrote:
> suppressed am Freitag, 24. November 2006 11:27:
> 
> [snipped]
> > Watch this:
> >  | suppressed:~$ 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-----


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.