Pass references:
$status->jobs_terminate(\%hoh, \@del_ids); sub jobs_terminate { my $self = shift; my ($hoh, $del_ids) = @_; print Dumper $hoh; foreach my $id (@$del_ids) { print $id; } }
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to Re: pass several arguments to a subroutine
by jeffa
in thread pass several arguments to a subroutine
by rsennat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |