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'.
In reply to Re: Re: Re: Re: Default subroutine parameters (boo)
by Fletch
in thread Default subroutine parameters
by thelenm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |