kahn has asked for the wisdom of the Perl Monks concerning the following question:
I wrote this;
In hopes of it being simple. Ofcourse it is not... A sample of the output from $val looks like this;#!/usr/bin/perl -w use DB_File; use strict; my %DB; my $key; my $val; tie (%DB, "DB_File", "./igusers.db", O_RDONLY, 0644, $DB_HASH); while (($key, $val) = each %DB) { print "$key = $val2\n"; } untie(%DB);
From there I tried;mat071 = Ômat071*mat071ex group dlÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ +ÿÿÿÿÿÿÿÿÿÿÿÿexchforwardÿÿÿÿÿÿÿÿ¡ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
but then $val2 has nothing in it. Can someone kick me in the butt and let me know what I am doing wrong here.#!/usr/bin/perl -w use DB_File; use strict; my %DB; my $key; my $val; my $val2; tie (%DB, "DB_File", "./igusers.db", O_RDONLY, 0644, $DB_HASH); while (($key, $val) = each %DB) { $val2 = ref($val); print "$key = $val2\n"; } untie(%DB);
Thanks,
Kahn
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reverse-Engineering sendmails alias file
by tadman (Prior) on Nov 08, 2002 at 20:04 UTC | |
|
Re: Reverse-Engineering sendmails alias file
by iburrell (Chaplain) on Nov 08, 2002 at 21:07 UTC | |
by l2kashe (Deacon) on Nov 08, 2002 at 21:26 UTC | |
|
Re: Reverse-Engineering sendmails alias file
by traveler (Parson) on Nov 08, 2002 at 20:57 UTC |