You would need to pass undef in the missing slots.
prog(1,undef,undef,2,3);
But if you have optional parameters you'll be far better off passing named parameters using a hash.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Optional parameter passing to a function??
by davorg
in thread Optional parameter passing to a function??
by pijush
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |