-----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" || 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-----

Reply via email to