maybe use feature is special, but normally use if should do that.
works for me:
use strict; use warnings; use constant VERBOSE=>0; use if VERBOSE, feature => "say"; sub say { print "nothing"; } say 'test';
Cheers Rolf
In reply to Re: Redefining Imported Subs: of scope and no
by LanX
in thread Redefining Imported Subs: of scope and no
by temporal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |