then in the main code:package MyVars; use base Exporter; @EXPORT = qw($footer $header); # etc use CGI qw(font); # etc $footer = font(...); $header = font(...);
The default will pull in everything from @EXPORT.use MyVars qw($footer);
-- Randal L. Schwartz, Perl hacker
In reply to Re: strict and require.
by merlyn
in thread strict and require.
by Baz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |