No <DATA> is not a filehandle, it is an instance of the readline operator - DATA is a filehandle - you will probably want to do:
my $parser = XML::LibXML->new(); my $xml = $parser->parse_fh(*DATA);
/J\
In reply to Re: Parsing XML in a __DATA__ Block
by gellyfish
in thread Parsing XML in a __DATA__ Block
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |