You could use a different design ;-) or pass the switch as last parameter and ignore it if it is undef (kind of optional parameter) or you can use a hashref as parameter and change the behaviour depending on the keys/values. But I personally dislike the last idea and would check for different design.
In reply to Re: Passing switch to 2nd level subroutine?
by BrimBorium
in thread Passing switch to 2nd level subroutine?
by JCHallgren
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |