Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am hoping to get this output.#!/usr/bin/perl use strict; use Data::Dumper; my $test = { record => '' }; $test->{record}->{'a'} = 11; $test->{record}->{'b'} = 22; print Dumper \$test;
$VAR1 = \{ 'record' => { 'a' => 11, 'b' => 22 } };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Add Data to Hash Reference
by moritz (Cardinal) on Dec 07, 2010 at 20:11 UTC | |
by Anonymous Monk on Dec 07, 2010 at 20:25 UTC | |
by moritz (Cardinal) on Dec 07, 2010 at 20:35 UTC | |
|
Re: Add Data to Hash Reference
by roboticus (Chancellor) on Dec 07, 2010 at 20:28 UTC | |
|
Re: Add Data to Hash Reference
by shail (Initiate) on Dec 07, 2010 at 20:36 UTC | |
by Anonymous Monk on Dec 07, 2010 at 21:10 UTC |