in reply to Restoring the magic to the _ filehandle in Perl 5.8.9
I'm using sub _() as a means to localise textBeside the problem you have with _ having special meaning, the other problem you have is that _ always lives in main. If you would happen to use a module that also defines a sub _, you have a problem.
As for your question of restoring magic to _, I'm afraid I don't know the question. I've used sub _ myself before, and ran into the problem, and the problem I mentioned above. I now no longer use sub _. sub __ doesn't have the mentioned problems.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Restoring the magic to the _ filehandle in Perl 5.8.9
by clinton (Priest) on Jan 27, 2010 at 17:36 UTC |
In Section
Seekers of Perl Wisdom