http://qs1969.pair.com?node_id=161205


in reply to Default subroutine parameters

Could you check the number of arguments using $#argv and use an if statement to define it or not.
if ($#argv == 0){ $foo = 'default'; }else { $foo = shift; }
or something like that. I hope that helps.

Sam