in reply to Passing arguments to a Perl script
Declaring the sub Some::Module::import facilitates this. The list of compile time args, if any, preceded by the module name, are passed to the sub by the compiler (thus Some::Module::import behaves as a class method) when the module is used.
This effect can be observed by considering the oft-quoted equivalence of the following 2 snippets:
anduse Foo qw/arg1 arg2/;
BEGIN { require Foo; Foo->import(qw/arg1 arg2/); }
|
|---|