I called sample from my own sub like this, with the intention of accessing 0th element of @r defined in sample.Its not working. Can you let me know, what is missing here
sub temp { sample(($t,$r_ref) = @_ ; $r_ref->[0]); }
In reply to Re^3: setting values inside subroutine
by Anonymous Monk
in thread setting values inside subroutine
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |