in reply to Parsing XML in a __DATA__ Block
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\
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing XML in a __DATA__ Block
by mirod (Canon) on Jun 01, 2005 at 09:20 UTC | |
by PodMaster (Abbot) on Jun 01, 2005 at 09:25 UTC | |
by runrig (Abbot) on Jun 01, 2005 at 17:25 UTC | |
|
Re^2: Parsing XML in a __DATA__ Block
by loris (Hermit) on Jun 01, 2005 at 09:23 UTC | |
|
Re^2: Parsing XML in a __DATA__ Block
by loris (Hermit) on Jun 02, 2005 at 10:49 UTC | |
by bart (Canon) on Jun 02, 2005 at 12:19 UTC | |
by gellyfish (Monsignor) on Jun 02, 2005 at 11:59 UTC |