Requiring Lexical $_ / Obliterating Global $_? - Page 2

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Re: Requiring Lexical $_ / Obliterating Global $_?

Quoted text here. Click to load it
Quoted text here. Click to load it

You want to tie (the global) $_ to a class that looks like

    sub FETCH { croak "Global $_ forbidden" }
    sub STORE { croak "Global $_ forbidden" }

I swear there's a module on CPAN that implements this, but I can't find
it :(.


It will be seen that the Erwhonians are a meek and long-suffering people,
easily led by the nose, and quick to offer up common sense at the shrine of
logic, when a philosopher convinces them that their institutions are not based
on the strictest morality.  [Samuel Butler, paraphrased]

Site Timeline