in reply to Re: print_notice or print $notice or print notice?
in thread print_notice or print $notice or print notice?

Unfortunatly, that method for changing the text for internationalization won't work. use constant is evaluated at compile-time, thus if code is compiled, a use constant in it will take effect, to illustrate this:

#!/usr/bin/perl -w use strict; use constant TEST => 'outside'; if (0) { use constant TEST => 'if(0)'; } print TEST, "\n"; __END__ outputs: Constant subroutine TEST redefined at ... if(0)