in reply to Re^3: Using guards for script execution?
in thread Using guards for script execution?

Actually, my $global; is not global. In your example, it is file scoped, so only accessible in that file and only after the declaration.