in reply to Passing array to a subroutine
Pass a reference to the array instead:
Then dereference it in the subroutine:$t->sadk_flap_mx_ifd_laser( ifd => \@child_interfaces, flap => $flaps +);
sub sadk_flap_mx_ifd_laser { my %args = @_; my @child_interfaces = @{ $args{'ifd'} }; my $flap = $args{'flap'}; ... }
Hope this helps!
Update: removed unrelated link to perldsc, the correct doc is perlreftut as pointed out below by haukex.
|
|---|