That way, it acts like a use, causing all "regional" definitions and actions to be executed before the "main" program starts running.BEGIN { package My::Package; ... code goes here ... }
-- Randal L. Schwartz, Perl hacker
In reply to •Re: Source files, packages and name spaces
by merlyn
in thread Source files, packages and name spaces
by Dinosaur
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |