in reply to subroutines - passing hashes by reference
and hereforeach (keys %enthalpy_hash) { ...
Since you're passing hash refs, you need to treat them accordingly;i.e,if (exists $hash{$_}) { ...
andforeach (keys %$enthalpy_hash) { ...
Those are just a couple of examples, of course. There's a few other places where you used hash refs improperly.if (exists $hash->{$_}) { ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: subroutines - passing hashes by reference
by Anonymous Monk on May 01, 2003 at 15:17 UTC | |
by perlplexer (Hermit) on May 01, 2003 at 15:24 UTC |