flightdm has asked for the wisdom of the Perl Monks concerning the following question:
And here's what I'd like to produce (I don't care whether the { 'name' => 'value' } entry remains in the result or not):$foo = { [ { name => 'a', type => 1, rockets => 2, leaves => 3 }, { name => 'b', type => 7, rockets => 4, leaves => 1, samples => [ { name => 'mary', dog => 'fifi' }, { name => 'john', fish => 'oscar' } ] } ] };
Thanks in advance for the help!$foo1 = { a => { name => 'a', type => 1, rockets => 2, leaves => 3 }, b => { name => 'b', type => 7, rockets => 4, leaves => 1, samples => { mary => { name => 'mary', dog => 'fifi' }, john => { name => 'john', fish => 'oscar' } } } };
|
|---|