Hi All,
I have the following problem.....
#I have two hashes
my %self; my %abldcache;
#I then populate the abldcache array and make self #reference it
$self{abldcache} = \%abldcache;#I then use DataDumper to dump this to a file
print OUTFILE Data::Dumper->Dump([%self->{abldcache}], [qw(self->{abldcache})]);#This works and gives me the following example of output...
$self->{abldcache} = { 'test1' => [], 'test2' => [ 'element1' + 'element2', 'element3' + ] };
#However, I want to produce this in the following format...
$self->{abldcache}->{'test1'} = [], $self->{abldcache}->{'test2'} = [ 'element1' + 'element2', 'element3' + ]
Could anyone tell me how to restructure my hashes so that Datadumper will give me this format???
Thanks in advance for any help you can give.
Edited 2005-02-11 by Ovid
In reply to Using Data Dumper to represent 3 hashes by fatherlyons
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |