in reply to Re: Optional and default parameters for a subroutine
in thread Optional and default parameters for a subroutine
To do the same with explicit testing you'd need
$args{arg1} = 'default value1' unless exists $args{arg1};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Optional and default parameters for a subroutine
by saberworks (Curate) on Aug 29, 2005 at 20:34 UTC |