http://qs321.pair.com?node_id=90869


in reply to Re (tilly) 2: using 'my'
in thread using 'my'

FWIW, those truly global variables are really all in the main package. The language parser acts as if those global variable names were prefixed with main:: if no package is specified, no matter what package directive is in scope at the time.

    -- Chip Salzenberg, Free-Floating Agent of Chaos

Replies are listed 'Best First'.
Re (tilly) 4: using 'my'
by tilly (Archbishop) on Jun 23, 2001 at 02:21 UTC
    I know that. An amusing side-effect is that if someone mistakenly tries to throw an our on, say, $_ and they are in any package other than main::, it will not work as they expect.

    This might be considered a bug.