diarmuid has asked for the wisdom of the Perl Monks concerning the following question:
however I've tried to put and array into the hash and pass that to the array but I am having no luck. Any indicators as to what I'm doing wrong?$clocks{$pin_name}{'period'} = $Worksheet->{Cells}[$row][$clock_col]-> +Value; #snip foreach my $key (sort keys %clocks){ print_clock_assertions($clocks{$key},$key); } sub print_clock_assertions { my($hashref)=$_[0]; my($clock_name)=$_[1]; if($hashref->{'virtual'} eq "VIR") { etc...
if ($Worksheet->{Cells}[$row][$jit_ear_rise_col]){ my @jit_values; foreach my $col ($jit_ear_rise_col .. $jit_late_fall_col){ push @jit_values,$Worksheet->{Cells}[$row][$col]->Value; } $clocks{$pin_name}{'jit'} = @jit_values; } my @jitter_values = $hashref->{'jit'} ; foreach (@jitter_values){print "$_\n";}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ar0n) Re: hashes of hashes of arrays in subroutine
by ar0n (Priest) on May 11, 2001 at 18:54 UTC | |
by diarmuid (Beadle) on May 11, 2001 at 19:03 UTC | |
by Anonymous Monk on May 11, 2001 at 21:48 UTC | |
|
Re: hashes of hashes of arrays in subroutine
by rchiav (Deacon) on May 11, 2001 at 19:23 UTC | |
|
Re: hashes of hashes of arrays in subroutine
by Anonymous Monk on May 11, 2001 at 21:45 UTC |