I would like to create a global variable only if a check returns true, but don't know how.
which obviously doesn't work as $globalvar will only be local to the it's subroutine.
So how would I rewrite that to create a global variable if $xyz is true, when using 'strict'?