in reply to passing information into a hash
Also, you really out to check out Data::Dumper for quick and dirty printing out of datastructures:$unsubscribe{$address} = [@dbase_array];
And don't forget to use strict and warnings as well.use Data::Dumper; use CGI qw(:standard); my %unsubscribe; foreach my $address (@dbs) { open (DAT,'<',"$memberinfo/$address") or die "can't open $address: +$!\n"; my @dbase_array = <DAT>; print pre("dbase_array = ", Dumper \@dbase_array); print "address = $address", br(); close(DAT); $unsubscribe{$address} = [@dbase_array]; print pre("hash = ", Dumper \%unsubscribe); }
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: passing information into a hash
by hmerrill (Friar) on Sep 29, 2003 at 14:50 UTC | |
by jeffa (Bishop) on Sep 29, 2003 at 14:54 UTC | |
by hmerrill (Friar) on Sep 29, 2003 at 17:08 UTC | |
by jeffa (Bishop) on Sep 29, 2003 at 19:00 UTC | |
|
Re: Re: passing information into a hash
by Anonymous Monk on Sep 29, 2003 at 14:40 UTC |