in reply to package parameters

You need to define an import sub, which will get the arguments to your package.
package MyPackage; sub import { my $class = shift; print "args: @_\n"; } 1; package Main; use MyPackage qw(arg1 arg2);