can i make @r an optional argument (reference) and call sample { my ($t, $r_ref) = @_; my @r; @r //= @{$r_ref} .. } # from my own sub?
In reply to Re: setting values inside subroutine
by Anonymous Monk
in thread setting values inside subroutine
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |