in reply to subroutines - passing hashes by reference
See. tye's References quick reference and the venerable perlref for more info on references and dereferencing in perl. On a side note the likes of strict will catch this sort of error upon a simple perl -c.foreach (keys %$enthalpy_hash) { if(exists $hash->{$_}) { push @common, "$_ = ", $enthalpy_hash->{$_} * $hash->{$_}, "\n"; push @total, $enthalpy_hash->{$_} * $hash->{$_}, "\n"; } }
_________
broquaint
|
|---|