&formtable(%FORM);
sub formtable(\%) {
my $hash_ref = shift;
my %hash = %$hash_ref;
foreach $key (%hash){
print "$key=$hash{$key}";
}
}# Close of formtable
prints nothing and I test the %FORM with same foreach loop and values print... ? globals? Have to use $_[0]??? etc. In reply to Re: How Do I pass a hash to a subroutine?
by GoldenSage
in thread How Do I pass a hash to a subroutine?
by filmo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |