in reply to Add Data to Hash Reference
#!/usr/bin/perl use strict; use warnings; use Data::Dumper; my %test = { record => ' ' }; my $test = \%test; $test->{record}->{'a'} = 11; $test->{record}->{'b'} = 22; print Dumper \%test;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Add Data to Hash Reference
by Anonymous Monk on Dec 07, 2010 at 21:10 UTC |