Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Bareword "HTTP::Status::RC_PERMANENT_REDIRECT" not allowed while "strict subs" for https request

by Corion (Patriarch)
on May 06, 2021 at 13:58 UTC ( [id://11132152]=note: print w/replies, xml ) Need Help??


in reply to Re: Bareword "HTTP::Status::RC_PERMANENT_REDIRECT" not allowed while "strict subs" for https request
in thread Bareword "HTTP::Status::RC_PERMANENT_REDIRECT" not allowed while "strict subs" for https request

If you are running your script in a persistent environment like a mod_perl script, you might want to explicitly load HTTP::Status to make sure all the subroutines are explicitly defined:

use HTTP::Status;

In the long run, LWP::UserAgent should explicitly have use HTTP::Status; in its code as bliako commented, because it uses elements from that module.

Update: The change has found its way into LWP::UserAgent and will be in some release.

  • Comment on Re^2: Bareword "HTTP::Status::RC_PERMANENT_REDIRECT" not allowed while "strict subs" for https request
  • Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11132152]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-25 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found