Perl-er has asked for the wisdom of the Perl Monks concerning the following question:

Venerable monks,

I am using the LibXML.pmmodule for some XML validations. I found that some files were failing in the parse_file() subroutine of the module; and specifically at the  eval { $result = $self->_parse_file(@_); }; statement. I figured out that the error was due to the non-UTF 8 characters being present.

However, I would like to know from where the _parse_file() subroutine is being referenced in the module. I didn't find it in any underlying module/referenced file.

Many thanks,
Ketan

Replies are listed 'Best First'.
Re: parse_file() subroutine of LibXML.pm module
by Anonymous Monk on Jun 22, 2009 at 06:39 UTC
      Hi,

      Thanks for the reply. I ran the suggested statement:  grep -r _parse_file XML-LibXML-1.69: XML-LibXML-1.69/LibXML.xs and a couple of other variations for the 'grep' command, hoping to find results, but no luck. I also searched for the LibXML.xs file in entire server, but it doesn't exist.

      However, when I searched on just 'LibXML', I stumbled upon the LibXML.so file, which seems to contain the text for  _parse_file. Probably, it contains the implementation of the _parse_file() subroutine? However, since it is a binary code, I couldn't decipher much.

      Many thanks,
      Ketan