in reply to Re: Parsing XML in a __DATA__ Block
in thread Parsing XML in a __DATA__ Block

Actually, one thing is still puzzling me.

When I have

__DATA__ ... XML here ... __END__

I get the error

Entity: line 13: parser error : Extra content at the end of the docume +nt __END__

Shouldn't __END__ be recognised as not being part of the contents of the __DATA__ block?

loris

Replies are listed 'Best First'.
Re^3: Parsing XML in a __DATA__ Block
by bart (Canon) on Jun 02, 2005 at 12:19 UTC
    __END__ and __DATA__ are virtually synonyms, so that doesn't sound too practically feasable to me. Besides, what if you do want a line "__END__" inside your data, what then?

    Perhaps you should look into Inline::File.

Re^3: Parsing XML in a __DATA__ Block
by gellyfish (Monsignor) on Jun 02, 2005 at 11:59 UTC

    No

    /J\