in reply to Re: Maintaining strict refs while Binding a set of variables to @_ or dying if they are not defined
in thread Maintaining strict refs while Binding a set of variables to @_ or dying if they are not defined
sub someFunc { my %args = @_; my @arglist = qw{ client_number MM DD S }; foreach (@arglist) { die "$_ not given" unless exists $args{$_}; } # Now use $args{client_number} and $args{MM} }
|
|---|