Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: How to import "global" variables into sub-scripts from main script? (Cargo culting red flags)

by Anonymous Monk
on Mar 22, 2021 at 13:03 UTC ( [id://11130117]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to import "global" variables into sub-scripts from main script? (Cargo culting red flags)
in thread How to import "global" variables into sub-scripts from main script?

Right after shooting yourself in the foot might not be the right time to advocate leaving the saftey off.
  • Comment on Re^3: How to import "global" variables into sub-scripts from main script? (Cargo culting red flags)

Replies are listed 'Best First'.
Re^4: How to import "global" variables into sub-scripts from main script?
by Polyglot (Chaplain) on Mar 22, 2021 at 13:32 UTC

    Perhaps not. But it's too late to loose the safety after one has already been out drawn.

    In any case, removing strict clears up the issue for me entirely: No error messages in the logs, NO problems with the script running, no indication of any trouble at all. Simply adding use strict; to that file shuts everything down to the point of one of these beauties:

    Internal Server Error The server encountered an internal error or misconfiguration and was u +nable to complete your request. Please contact the server administrator at webmaster@[redacted].com to + inform them of the time this error occurred, and the actions you per +formed just before this error. More information about this error may be available in the server error + log.

    I haven't been able to verify that "strict" is giving only warnings. It is actually throwing a kill switch for me--and my script presently runs fine without it.

    Blessings,

    ~Polyglot~

      Perl without strict is another language.

      I'm afraid, you won't get much support for that one here.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

      Yes, putting a screwdriver through your check engine light is one way to get it to turn off.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-24 05:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found