in reply to Re^6: Why should I use perl 5.10?
in thread Why should I use perl 5.10?
it is strange that the environment influences how do I speak:
I guess it's analogous to to getting an echo when conversing in a canyon :)
Alternatively, you could make the case that a module doesn't speak for it's author, but rather acts on behalf of the application author that uses it.
But, I do get what you mean. In the docs for 5.10 I just read about the new lexical $_ that locally overrides the global of the same name. It struck me that it would be nice if a similar arrangement was possible for many/most of the special globals, but on a package by package basis.
Eg. If I declare and set a $/ at the top level of my package, then whenever the global of that name would be used, the local package instance (if it exists) would be used in preference to the global.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Why should I use perl 5.10?
by blazar (Canon) on Dec 02, 2007 at 16:54 UTC | |
by BrowserUk (Patriarch) on Dec 03, 2007 at 00:18 UTC |