in reply to Re^4: slow startup for some common modules? (autodie, Pod::Usage, Getopt::Long))
in thread slow startup for some common modules? (autodie, Pod::Usage, Getopt::Long))

> use Pod::Usage if $needPod;

Timing! You can't make a compile-time use (the BEGIN-part) depend on run-time conditions.

FWIW: you could use the if pragma, but only if the condition is available at compile-time

but as you see the conditions here are (compile time) constants

Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^5: slow startup for some common modules? (autodie, Pod::Usage, Getopt::Long))
  • Download Code