go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Yes, that is what aliasing is supposed to do.
For instance consider this: See? There is indirection needed to do what happens in that loop, but you don't have to think about it, and it does not appear as explicit dereferences in your code. It just works. That is the difference between an alias and a reference. With a reference the indirection shows up as your having to tell Perl to dereference things. With an alias it is hidden inside the definition of the variable. That is an amusing difference between Perl and, say, C. The same code written in C is in reality more direct than in Perl. But the Perl code *looks* more direct because you don't see the indirections... In reply to Re (tilly) 6: NEWBIE Brain Teaser
by tilly
|
|