No, <DATA> reads from the filehandle *DATA and returns what it has read (delimited by $/).
What you want is \*DATA, or locally undef $/ and use parse_string instead of parse_fh
In reply to Re: Parsing XML in a __DATA__ Block
by mirod
in thread Parsing XML in a __DATA__ Block
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |