To do the same with explicit testing you'd need
$args{arg1} = 'default value1' unless exists $args{arg1};
In reply to Re^2: Optional and default parameters for a subroutine
by Joost
in thread Optional and default parameters for a subroutine
by ramya2005
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |