in reply to Redefining Imported Subs: of scope and no
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
|
|---|