in reply to Re: Hash to (X)HTML display
in thread Hash to HTML display

No, you've got the /LI in the wrong place. Change
join ('', map { "$i <li>$_</li>\n" . hash_to_html ($x->{$_}, "$i " +) } sort (keys (%$x)))
to
join ('', map { "$i <li>$_\n" . hash_to_html ($x->{$_}, "$i ")."$i + </li>" } sort (keys (%$x)))

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Hash to (X)HTML display
by flocto (Pilgrim) on Jul 18, 2002 at 15:18 UTC

    Oh, right.. I don't do lists all that often, but these not-closed li-tags just bugged me :)

    Regards, -octo