vsailas has asked for the wisdom of the Perl Monks concerning the following question:
module1 ..... ..... <some code> sub passMe{ my @data=(); push(@data, { %params, %extend_params, %basics, %annotations, %navigator, position => 'annotations', sid => $sid, navigator_link => '<a id="expand_nav" onclick="Element.hi +de(\'expand_nav\');">[brief]</a>', annotations_detail_link => q|[<a id="sed" onclick="Element.hid +e('sed'); Element.show('hed'); show_experiment_details();"> experimen +t details</a>]|, template => $tmpl }); return \@data, $ID; } module2 sub report { my ($aa, $bb)= &passMe; while ( my ($key, $val) = each( %{$aa}) ) { while ( my ($key1, $value) = each(%{$key}) ) { print "$key1 => $value\n"; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with passing hashes between modules
by hipowls (Curate) on Mar 05, 2008 at 10:50 UTC | |
|
Re: Problem with passing hashes between modules
by Fletch (Bishop) on Mar 05, 2008 at 14:31 UTC | |
|
Re: Problem with passing hashes between modules
by hangmanto (Monk) on Mar 05, 2008 at 15:56 UTC | |
by Fletch (Bishop) on Mar 05, 2008 at 16:21 UTC |