Here's my code:
sub passHash {
my ($ref1,$ref2) = @_;
my %hash1 = %$ref1;
my %hash2 = %$ref2;
my ($h);
$h = $hash1{"raw"};
return $h;
}
sub makeSFhash {
my ($n) = @_;
my ($sf,$rounded);
$sf = CountSigFigs($n);
$rounded = FormatSigFigs($n,$sf)...
I'm doing some small programming in perl to improve the way significant figures are tracked for webwork... Some of my functions are not working and it seems to be the way the hash functions are being passed.
Here is a snip of my code. The makeSFhash creates a hash from a number with the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.