in reply to Re: Defining global variable in a subroutine
in thread Defining global variable in a subroutine

No reason not to use a lexical.
use strict; my $HELLO = 'Hello'; sub new_message { $HELLO = 'Nihao'; }