in reply to How to better represent a complex data structure.
my %main_file=( USER <= \@user_file, TEST <= \@test_file, TRIM <= \@trim_file, );
Obviously you mean => there ;)
Like this?push(@{$main_file{"USER"}[0]}, $string);
Have you tried it? Did it fail you?
> perl -Mstrict -MData::Dumper -wE ' my %main_file = ( USER => [ [], [], [] ] ); push @{$main_file{"USER"}[0]}, "string ;)"; print Dumper \%main_file; ' $VAR1 = { 'USER' => [ [ 'string ;)' ], [], [] ] }; >
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to better represent a complex data structure.
by Amblikai (Scribe) on Jan 08, 2013 at 17:17 UTC |
In Section
Seekers of Perl Wisdom