http://qs321.pair.com?node_id=11115258

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

ON Debian linux, I am using XML::Xpath & XML::XPath::Parser for parsing some web files, and started getting this error: Cannot open file 'this service is depreciated as of 1/15/2020' at /usr/share/perl5/xml/xpath.pm

Replies are listed 'Best First'.
Re: xpath.pm depreciated?
by swl (Parson) on Apr 09, 2020 at 03:38 UTC

    Are you sure it's in XML::XPath and not in the web site you are accessing? I just searched the source code for that file and could not find the text "depr" (see code here)

    Please also provide an SSCCE to make it easier for others to help you.

    (Edited to fix capitalisation of XPath, as noted by hippo in 11115265, and then edited the edit to acknowledge hippo and not holli - thanks johngg via chatterbox).

Re: xpath.pm depreciated?
by ForgotPasswordAgain (Priest) on Apr 09, 2020 at 13:46 UTC
    Based on google results, I'm guessing that you're fetching from https://wxdata.weather.com/ , which returns the text "This service is deprecated as of 01/15/2020". ;)
      OMG - my silly mistake, and amazing detective work. Yes, you are exactly right. Weather reporting program, and I misread the error message. Using Debug::Trace showed my error, but coming here you found it first!! Thanks, sorry for the noise!!!
Re: XML::XPath "depreciated"?
by hippo (Bishop) on Apr 09, 2020 at 08:00 UTC

    In addition to swl's comment, even without looking at the XML::XPath source (note that the P is uppercase in the real module) I would expect the authors of that module to be able to use the correct word which is "deprecated" and not "depreciated". Further, it expects the string 'this service is depreciated as of 1/15/2020' to be a filename to be opened, rather than intending it to be a message to you. The message to you is that it cannot open the file.

    Without an SSCCE and a statement of which version of XML::XPath you are using there's not much more to be said.