in reply to Re: Named Parameters - Dashes or No?
in thread Named Parameters - Dashes or No?

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

  • Comment on Re: Re: Named Parameters - Dashes or No?

Replies are listed 'Best First'.
Re: Re: Re: Named Parameters - Dashes or No?
by chromatic (Archbishop) on Jul 24, 2003 at 19:37 UTC

    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.