develooper Front page | perl.perl6.users | Postings from December 2019

pass by reference

Thread Next
From:
Joseph Brenner
Date:
December 8, 2019 19:19
Subject:
pass by reference
Message ID:
CAFfgvXXiJ7yEXp8WqCdRZh-vH8opiwv2-FVQTPFCxPsQ9mNbOw@mail.gmail.com
What's the sub signature incantation to
pass-by-reference do you can act directly
on the structure passed in without juggling
an alias yourself?

  # deal from middle
  my $card = pop_random( @deck );

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About