in reply to Re: Bad news for IO::Handle magic (SWYM or sink)
in thread Bad news for IO::Handle magic
Don't use single-word, all-lower-case subroutine names. If you do, then you can reduce your risk by either calling them like &mysub(...) or by putting them into a module (and then import them, use the full name with package name in front, or use OO).
I can see there is a potential problem in that calling single word subroutines without parentheses can be confusing to the parser, but what's the difference in this regard between all-lower-case subroutines and (for example) CamelCase subroutines? Or are you warning against redefining future keywords/build-ins?
Joost.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Bad news for IO::Handle magic (lowercase subs)
by tye (Sage) on Jul 07, 2004 at 23:05 UTC |