loris has asked for the wisdom of the Perl Monks concerning the following question:
Hello XML-Datablocksters,
I am using __DATA__ for the first time and want to store XML in it and then parse the data with
my $parser = XML::LibXML->new(); my $xml = $parser->parse_fh(<DATA>);
However, I get the error
Usage: XML::LibXML::_parse_fh(self, fh, dir = &PL_sv_undef)Is <DATA> not a file handle?
Puzzled,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing XML in a __DATA__ Block
by gellyfish (Monsignor) on Jun 01, 2005 at 09:16 UTC | |
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 | |
by loris (Hermit) on Jun 01, 2005 at 09:23 UTC | |
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 | |
|
Re: Parsing XML in a __DATA__ Block
by mirod (Canon) on Jun 01, 2005 at 09:14 UTC |