Perl: the Markov chain saw | |
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re^4: Ternary Quizical behaviour? (Ref vs Alias)
by LanX
|
|