Pointers and references: Difference between revisions
m
→{{header|Raku}}: Fix comments: Perl 6 --> Raku
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: Fix comments: Perl 6 --> Raku) |
||
Line 1,525:
=={{header|Raku}}==
(formerly Perl 6)
In
<lang perl6>my $foo = 42; # place a reference to 42 in $foo's item container
Line 1,542:
References to hashes and functions work more like arrays, insofar as a method call acts directly on the container, not on what the container contains. That is, they don't do the extra dereference implied by calling a method on a scalar variable.
To the first approximation,
=={{header|REXX}}==
|