Perl: the Markov chain saw | |
PerlMonks |
Re: Using perl module if env is enabledby Corion (Patriarch) |
on Dec 09, 2019 at 15:19 UTC ( [id://11109880]=note: print w/replies, xml ) | Need Help?? |
See use. use Foo::Bar; is basically BEGIN { require Foo::Bar; }. If you want some conditional logic, you can put that into the BEGIN block as well:
The if module wraps that simple case already:
In Section
Seekers of Perl Wisdom
|
|