in reply to Re: how to replace the <anon> tag (XML::Simple)
in thread how to replace the <anon> tag (XML::Simple)

I'm puzzled by the curlies on your line

my @doc = { a => 'a', b => 'b' } ;

Shouldn't it read

my @doc = ( a => 'a', b => 'b' ) ;

I guess I'm missing something obvious.

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^3: how to replace the <anon> tag (XML::Simple)
by GrandFather (Saint) on Apr 19, 2006 at 19:35 UTC

    or:

    my %doc = (a => 'a', b => 'b');

    OP's code was so syntacticlly challenged that that (introduced) foible sliped through while I was cleaning up the issues raised by adding the strictures.

    The result is the same in this case in any case and is not pertinent to OP's problem - but worth pointing out.


    DWIM is Perl's answer to Gödel
      "syntactically challenged", I like that :-)