in reply to Named Parameters - Dashes or No?

The reason that Tk uses dashes, is that Tk was developed for the TCL language, and TCL uses dashes in it's commands for options. I'm not sure what symbols you are refering to that may be interfered with, but in any case, I can't see how that may happen. Usually one would assign the list of options to a localized hash in the sub, and use them from there, which shouldn't interfere with anything.

Replies are listed 'Best First'.
Re: Re: Named Parameters - Dashes or No?
by batkins (Chaplain) on Jul 24, 2003 at 19:28 UTC
    Well, if you had a situation like this: sub name { ... } somefunc(name => '122323223') would the existence of the name sub cause problems with the hash?
    milkbone - perl/tk instant messaging - it's the only way to fly

    You know anyone who'll debug two million lines of code for what I get this job?
    - Dennis Nedry

      Try it to see what happens. Try it with B::Deparse to see what Perl thinks it is.

      It turns out that the fat comma autoquotes the preceding bareword. No problem; that's what you want.