No such thing as a small change | |
PerlMonks |
Re^4: Ternary Quizical behaviour? (Ref vs Alias)by LanX (Saint) |
on Jul 10, 2020 at 21:51 UTC ( [id://11119165]=note: print w/replies, xml ) | Need Help?? |
> I don't think that's as common as you potentially think. sometimes an example is clearer than many words: the first arg to tst() is a scalar-ref, the second the scalar itself
as you can see these are quite different concepts. References are a datatype in Perl pointing to another thing. Aliases are just the same thing by another symbolic name (sic). And in fact, to prove it, that alias has even the identical reference! compare also: > never used the term alias to refer to a variable passed by reference. well never too late! :)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|