#!/user/bin/perl # BEGINs run FIFO, so set the global # in its own block. BEGIN { # A global switch that would # ideally control several options # throughout the program and would # be the only difference between # the "working" and "development" # versions. our $DEBUG = 1; } # Now set which things to import. BEGIN { # These will only be used in the # debugging version. if ($DEBUG) { use strict; use warnings; use Data::Dumper; use CGI::Carp; } # These are needed by the program # regardless. use CGI::Minimal; use HTML::Template; # ... others, etc. }