[BNE-PM] Anyone played with DB_File?

Peter Freiberg Peter.Freiberg at env.qld.gov.au
Tue Sep 14 00:37:22 CDT 1999


Hello Andrew,

I'm not sure whether this will fix your problem, as I haven't used
DB_File.

Andrew Pollock wrote:
> tie %aliases, 'DB_File', "/etc/aliases", "RDONLY", 0640, $DB_HASH || die
> "Couldn't do it: $!\n";
> foreach (%aliases) {
>         print "$_ = %aliases{$_}\n";

I think these last two lines should be
  foreach (keys %aliases) {
          print "$_ = $aliases{$_}\n";

It looks to me like the hash hasn't been addressed correctly.

regards,

Peter.

-- 
----------------------------------------------
Peter Freiberg
Information Support Officer (Web)
Environmental Protection Agency
Tel: 07 3227 8954  Fax: 07 3227 8455
E-mail: Peter.Freiberg at env.qld.gov.au

Visit us online at http://www.env.qld.gov.au
----------------------------------------------



More information about the Brisbane-pm mailing list