use YAML; my %Recipes = ( YumYumStuff => { ingredients => [ { 1 => "1 Pate a Bombe", 2 => "1/2 French Meringue", 3 => "300ml double cream", 4 => "3 very ripe bananas", 5 => "2 tablespoons Creme de Banane", 6 => "1 Bitter Chocolate Sorbet", }, ], instructions => [ { 1 => "Whisk together the pate a bombe and the French " + . "Meringue mixtures. They should be roughly equal + in " . "amounts by volume.", 2 => "Lightly whip the cream to the same consistency a +s the " . "pate de bombe and French Meringue mixture then m +ix " . "bothmixtures together", 3 => "Finally, whisk in the banana puree and liquer. +Pour " . "or pipe into ramekins, a long loaf tin or a larg +e " . "freezer container. ", 4 => "About 30 mins before serving, transfer the parfa +it " . "from the freezer to the refrigerator", }, ], }, ); print Dump \%Recipes; __END__ --- #YAML:1.0 YumYumStuff: ingredients: - 1: 1 Pate a Bombe 2: 1/2 French Meringue 3: 300ml double cream 4: 3 very ripe bananas 5: 2 tablespoons Creme de Banane 6: 1 Bitter Chocolate Sorbet instructions: - 1: ! >- Whisk together the pate a bombe and the French Meringue mixtur +es. They should be roughly equal in amounts by volume. 2: ! >- Lightly whip the cream to the same consistency as the pate de +bombe and French Meringue mixture then mix bothmixtures together 3: >- Finally, whisk in the banana puree and liquer. Pour or pipe i +nto ramekins, a long loaf tin or a large freezer container. 4: ! >- About 30 mins before serving, transfer the parfait from the fr +eezer to the refrigerator

In reply to Re: How do I print nested hashes by Anonymous Monk
in thread How do I print nested hashes by blueapache

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.