in reply to Re: strict and require.
in thread strict and require.
to your main program. Because strictness is lexically scoped, it won't apply to vars.pl anyway, so it's not a problem there.use vars qw($footer);
Then you can use the package variable $footer from the main program. Another possibility is to put an explicit package declaration into vars.pl (but don't use package vars; because that name is used by the use vars pragma.)
then you can require vars.pl, and refer to the footer as $Vars::footer from your main script.package Vars; $footer = qw(...);
|
|---|