$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;
In reply to Re^3: use module with parameter variable
by revdiablo
in thread use module with parameter variable
by QM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |