in reply to Re^12: localizing lexical without messing with tie ?
in thread localizing lexical without messing with tie ?
Named parameters in perl lingo are something like tst(-named=> parameter)
That's one means of achieving named parameters. (It also provides named arguments.) However, the method that was mentioned was Sub::Parameters. It's much closer to what you want. There might be others; I just mentioned the first I found.
many people here have a more emotional attitude about the "right way to do it".
What's the "right way" is a matter of debate because. However, some ways are clearly bad ways of doing it, such as having to declare the callee's parameters in a scope that's visible to both the callee and the caller.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^14: localizing lexical without messing with tie ?
by LanX (Saint) on Sep 12, 2010 at 13:04 UTC | |
by ikegami (Patriarch) on Sep 12, 2010 at 15:40 UTC | |
by LanX (Saint) on Sep 14, 2010 at 12:37 UTC | |
by ikegami (Patriarch) on Sep 14, 2010 at 14:33 UTC | |
|