in reply to print_notice or print $notice or print notice?

Er, is it me, or does No. 3 not do anything as it stands? Did you mean:
sub print_notice { print 'please be sure that XXX is installed first' } print_notice;

cLive ;-)