in reply to Relative Merits of References
In these circumstances refs are, imo, the only way to go. :-)#!/usr/bin/perl use strict; use warnings; my $h1 = { one => 1, two => 2, }; my $h2 = { three => 3, four => 4, }; my_sub($h1, $h2); sub my_sub { my ($h1, $h2) = @_; print "$_ $h1->{$_}\n" for keys %{$h1}; print "$_ $h2->{$_}\n" for keys %{$h2}; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Relative Merits of References
by Unanimous Monk (Sexton) on May 11, 2006 at 15:04 UTC | |
by pbeckingham (Parson) on May 11, 2006 at 15:11 UTC | |
by Hue-Bond (Priest) on May 11, 2006 at 15:34 UTC |