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)
In reply to Re: passing information into a hash
by jeffa
in thread passing information into a hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |