What is the correct way to pass a hash to a subroutine separately from a few strings? I have been using the following method,
sub generate { my $record = shift; my $status = shift; my %data = %{$_[0]}; ...
However, that brings up an "Always unpack @_ first" error with perlcritic --stern and therefore I wonder if there is a more appropriate method.
In reply to Passing a hash plus some strings to a subroutine by mldvx4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |