Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Greetings from a newcomer.
I've written a whole bunch of CGI code, but never with "use strict". Lately I've been trying to clean up my unstrictly ways, however, one of what I've always thought of as my "good programming practices" seems to be getting in the way, namely that of having an "include" type file with various constant values, directory names, utility subroutines, etc.. that I then requre into the various different CGI scripts that make up my web-app. Of course, now that I'm being "stricter", any globals defined in those "required" files appear as undeclared variables because perl apparently finishes compiling the first file before compling in the "required" file. So, what's the wisdom on good perl practice in this regard? Thanks! In reply to Trying to be stricter... by Henri Icarus
|
|