in reply to setting values inside subroutine
can i make @r an optional argument (reference) and call sample { my ($t, $r_ref) = @_; my @r; @r //= @{$r_ref} .. } # from my own sub?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: setting values inside subroutine
by Anonymous Monk on Sep 18, 2015 at 23:03 UTC | |
by Anonymous Monk on Sep 28, 2015 at 05:39 UTC | |
by Anonymous Monk on Sep 28, 2015 at 06:43 UTC |