On Thu, Feb 05, 2004 at 02:35:38PM +0100, Leopold Toetsch wrote: > Jens Rieks <[EMAIL PROTECTED]> wrote: > > > Here is a first version of a "Data::Dumper" i've written to be able to dump > > the AST of my C parser. > > Wow, fine. > > > A dumpertest.imc is included, which shows the dumper in action. > > s/included/missing/ :) > > > I'am sorry, but I have no idea how to convert this to a test. > > Test::More provides C<is_deeply> to compare structures. > > > ... BTW, is the > > order of the hash elements guaranteed to be equal across platforms? > > Just the opposite, its guaranteed to be not the same even on one > platform, albeit a srand() like call is still missing to get really > random key order.
So it would be really nice to have a "Data::Dumper" be able to sort the keys, like the Perl one now can. Tim.