I can now turn the %hash into text, but I don't understand how to make it
correctly formatted.

-----------------------------------
%hash = (
        'John' => {
                'eyes' => 'green',
                'hair' => 'brown',
                'clothes' => {  'boots'=>'black','shirt'=>'green'       }
        },
        'Jane' => {
                'height' => '6',
                'weight' => '120',
                'clothes' => {  'skirt'=>'white','sandals'=>'tan'}
        }
);


use Data::Dumper;
print Dumper(%hash);
----------------------------------

This returns the following...

$VAR1 = 'Jane';
$VAR2 = {
          'clothes' => {'sandals' => 'tan','skirt' => 'white'},
          'weight' => '120',
          'height' => '6'
        };
$VAR3 = 'John';
$VAR4 = {
          'clothes' => {'shirt' => 'green','boots' => 'black'},
          'hair' => 'brown',
          'eyes' => 'green'
        };


This is close to the original, but not correct.

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to