in reply to Hash and Array Printouts in CGI
Untested, i hope this solves your problem.sub get_block { my (%blocks,@events); # rest of code return (\%blocks,\@events); } # and call it like so my ($blocks_ref,$events_ref) = get_block(); print p($blocks_ref->{$day}); print p($events_ref->[$day]);
Jeff
R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--
|
|---|