On Sun, Sep 08, 2002 at 09:50:45PM +0200, Damian Conway wrote:
> Nicholas Clark wrote:
> 
> > Related, I think: no-one answered my question about what happens when I
> > define
> > 
> > sub dumb ($var, @var) {
> >   ...
> > }
> > 
> > and then call it with the pair var=>$thing
> 
> Exception, probably. Perhaps the error would be something like:
> 
> "Dumb ambiguous binding of dumb named parameter ("var") at demo.pl line 1. Dummy."
> 
> ;-)

What happens if I call a function (maybe not my dumb function above)
with the pair ('$var' => value) - ie the sigil is already in the name of
the pair. Presumably it "just works" for normal function.

So in this case, can I disambiguate things for my dumb function.

And if I call a function 

crazy ('$param' => $value, 'param' => $other_value);

presumably that also throws some sort of exception about ambiguity?

Nicholas Clark

Reply via email to