in reply to Re^2: use module with parameter variable
in thread use module with parameter variable

$string could be defined inside the BEGIN block, or the BEGIN block could be left out altogether. I only included it in my example out of sheer reflex. :-) Here's another example that might be more useful:

my $options; my $string = <<'HERE'; -one <one:i> First parameter HERE require Getopt::Declare; import Getopt::Declare $string => $options;