K
Kristofer Pettijohn
I'm defining a hash as follows:
my $HASH = (
'key1' => (
'sub1' => 'key1value1',
'sub2' => 'key1value2'
),
'key2' => (
'sub1' => 'key2value1',
'sub2' => 'key2value2')
)
and I would like to pass the reference of $HASH{'key1'} to a sub. How
do I go about doing this?
Thanks!
my $HASH = (
'key1' => (
'sub1' => 'key1value1',
'sub2' => 'key1value2'
),
'key2' => (
'sub1' => 'key2value1',
'sub2' => 'key2value2')
)
and I would like to pass the reference of $HASH{'key1'} to a sub. How
do I go about doing this?
Thanks!