in reply to Re: hashes,references and subroutines
in thread hashes,references and subroutines

OK, I'm still not sure what's going on.
I ran

foreach my $key (sort keys %clocks){ print_clock_assertions({ $clocks{$key} }); #line 32 } sub print_clock_assertions { my($hashref)=$_[0]; print STDOUT "ref 1 :$hashref->{'speed'}\n"; #line 44 }
and got loads of
Odd number of elements in hash assignment at parse_timing_info.pl line + 32. Use of uninitialized value in concatenation (.) at parse_timing_info.p +l line 44. ref 1 :
does $hashref contain the has reference when I do this?

PS Why how do stop the square bracket being removed?

Edit: chipmunk 2001-04-19

Replies are listed 'Best First'.
Re: Re: Re: hashes,references and subroutines
by busunsl (Vicar) on Apr 19, 2001 at 17:07 UTC
    You have to remove the {} in line 32.

    PS: Put your code in <code>tags.