tamaguchi has asked for the wisdom of the Perl Monks concerning the following question:
How should this be done properly? Thank you for your help.#!/usr/bin/perl -w use strict; my %hoh; $hoh{'A'}{1}=100; $hoh{'A'}{2}=200; $hoh{'A'}{3}=300; $hoh{'A'}{4}=400; $hoh{'B'}{10}=500; $hoh{'B'}{20}=600; $hoh{'B'}{30}=700; $hoh{'B'}{40}=800; rutine(\%{$hoh{'A'}}): sub rutine { my ($hoh_slice_ref)=@_; ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pass reference to internal hash?
by ikegami (Patriarch) on Nov 04, 2006 at 22:59 UTC | |
by Anonymous Monk on Nov 05, 2006 at 00:35 UTC |