List,

I just can't figure this out.  This code:

require DB_File;
use Fcntl;
tie %aliases, "DB_File", "/etc/mail/aliases.db", O_RDONLY;

while ( ($k,$v) = each %aliases ) {
    print "$k => $v\n";
}

finds all of the keys and values and works just fine:

root => [EMAIL PROTECTED]
@ => @
nobody => root

However if I try to pull out a specific value with:

require DB_File;
use Fcntl;
tie %aliases, "DB_File", "/etc/mail/aliases.db", O_RDONLY;

print $aliases{root};

It doesn't work.  If I use `makemap hash aliases < aliases` to make the
database all is well, but when I make it with newaliases I can't find a
value in the hash by key name.

Any ideas?

Thanks,

schu
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to