"I guess the expression should be $data{week}->{$rows} since it is a reference. Right?"
I usually use the -> operator so that it sticks out, but either should work. I don't think there is any performance benefit, so it is just a matter of preference. The same goes when dereferencing, %$data{week} is the equivelent of %{$data{week}}... and usually use the former. Rob -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, January 18, 2002 12:00 PM To: [EMAIL PROTECTED] Cc: Hanson, Robert; [EMAIL PROTECTED] Subject: RE: hashing - cannot remember how :( -----Original Message----- From: Hanson, Robert [mailto:[EMAIL PROTECTED]] Try this. You didn't provide any sample data, so this is untested. $data{ week } = \%week_day_date; $data{ eng } = \%eng_info; &build_table_date( 5, %data ); sub build_table_date { my( $rows, %data ) = @_; foreach $row ( 1..$rows ) { print"rows $row $rows $data{ week }{ $rows }<br>"; > I guess the expression should be $data{week}->{$rows} since it is a reference. Right? } } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]