in reply to Passing switch to 2nd level subroutine?
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.
|
|---|