Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: How to import "global" variables into sub-scripts from main script?

by Polyglot (Chaplain)
on Mar 22, 2021 at 13:32 UTC ( [id://11130120]=note: print w/replies, xml ) Need Help??


in reply to Re^3: 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?

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~

Replies are listed 'Best First'.
Re^5: How to import "global" variables into sub-scripts from main script?
by LanX (Saint) on Mar 22, 2021 at 13:45 UTC
    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

Re^5: How to import "global" variables into sub-scripts from main script?
by Anonymous Monk on Mar 22, 2021 at 16:13 UTC
    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://11130120]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-25 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found