m.nooning schrieb:
 > BEGIN {require foo; require bar;...}

Just an idea: if you don't want to actually load the module but include a hint for Module::ScanDeps to pick up the dependency, you can do this:

sub _wont_ever_be_run {
  require Foo;
  require Bar;
  # ...
}


If you just don't call _wont_ever_be_run, it won't load the modules since require() happens at run-time. But the static dependency scanner of Module::ScanDeps can pick up the require statements just fine.

I suppose wrapping the require()'s in an if (0) {} block works as well.

HTH,
Steffen

Reply via email to