jerrygarciuh has asked for the wisdom of the Perl Monks concerning the following question:
sub read_passfile { %passfile = (); open (PF, "$pass_file") or die "Couldn't read password file: $!"; while (<PF>) { chomp; @_ = split("\t", $_); $passfile{ $_[0] } = $_[1]; close PF; } }
my $check_me = my $check_me = $form_data{ 'new_user_name' }; my $h = \%passfile; my @c = [$h, $check_me]; my $d = Data::Dumper->new(@c, \@c); print $q->header; print $d->Dump; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Bad file slurp or Bad Dumper code?
by derby (Abbot) on Mar 15, 2002 at 14:16 UTC | |
by jerrygarciuh (Curate) on Mar 15, 2002 at 14:22 UTC | |
|
Re: Bad file slurp or Bad Dumper code?
by tachyon (Chancellor) on Mar 15, 2002 at 14:23 UTC | |
|
Re: Bad file slurp or Bad Dumper code?
by erikharrison (Deacon) on Mar 15, 2002 at 16:39 UTC | |
|
(jeffa) Re: Bad file slurp or Bad Dumper code?
by jeffa (Bishop) on Mar 15, 2002 at 18:34 UTC |