in reply to Re: Re: Re: Default subroutine parameters (boo)
in thread Default subroutine parameters

It doesn't supply a default because you've supplied a value (undef). If you want the default, don't supply something with that key as a parameter. You're presuming an idiom `replace undef parameters with the default value' where this code implements `replace unspecified parameters with the default value'.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Default subroutine parameters (boo)
by thelenm (Vicar) on Apr 23, 2002 at 16:32 UTC

    You're presuming an idiom `replace undef parameters with the default value'

    Right, that was the question I asked. :-)