in reply to Re: How to import "global" variables into sub-scripts from main script?
in thread How to import "global" variables into sub-scripts from main script?
Obviously, I was a bit frustrated over some things yesterday--had a bit of a bad day. I'm learning. However, my skepticism regarding the benefits of "use strict;" in this context remains. So far, I have seen no benefit at all in adding it to my subscripts: i.e., the only thing it has done is to require the declarations of variables that Perl already knew and was happy with. Strict has, in the absence of these declarations and until they were added, killed the process so that it won't even run, whereas before it would run flawlessly. Adding the global declarations to each and every subscript, when they were already defined in the main script, has only added multiple KB to my files and seemingly for no additional benefit--no additional change in form or function or even feedback on the script quality. I'm left to wonder how much the added kilobytes affect speed/efficiency of code execution, which causes me to seriously wonder if it might not be best to develop under "strict" then remove the added bloat, including the "use strict;" pragma, once everything is running and fine-tuned--including for the main script, as that would save multiple pages of code that appears to be entirely vestigial in terms of the actual script operation (only there for human readability).
Thoughts?
Blessings,
~Polyglot~
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to import "global" variables into sub-scripts from main script?
by Your Mother (Archbishop) on Mar 23, 2021 at 01:41 UTC | |
|
Re^3: How to import "global" variables into sub-scripts from main script?
by jcb (Parson) on Mar 23, 2021 at 21:20 UTC | |
by choroba (Cardinal) on Mar 23, 2021 at 21:36 UTC | |
by haukex (Archbishop) on Mar 24, 2021 at 08:45 UTC | |
by jcb (Parson) on Mar 24, 2021 at 01:32 UTC | |
by LanX (Saint) on Mar 24, 2021 at 02:54 UTC |