Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

xpath.pm depreciated?

by guthrie (Novice)
on Apr 09, 2020 at 03:20 UTC ( #11115258=perlquestion: print w/replies, xml ) Need Help??

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 (Curate) 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 (Curate) 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 (Chancellor) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://11115258]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2020-05-29 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (170 votes). Check out past polls.

    Notices?