You could use the module if, e.g.
BEGIN { our $DEBUG = 1 } use if $DEBUG, Data::Dumper; # ...
or
BEGIN { sub DEBUG {1} } use if DEBUG, Data::Dumper; # ...
In reply to Re: Controlling "use" statements
by almut
in thread Controlling "use" statements
by nodice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |