in reply to Why is this
Yup, ikegami is one of the best.
When I read the node-title, and having been bit by the same darned thing before (and having asked for Enlightenment because I just couldn’t see it), it immediately jumped into my head: “references.”
One of the semantic weaknesses of Perl, so to speak, is that variables are basically un-typed, and that the runtime behavior of a particular piece of code is determined at runtime. There is no way to express that a variable is, or that it must be, “a reference to this-or-that.” In this particular language, at this particular time, the concept simply does not exist. And it will bite you sometimes. Two variables can be (to improperly borrow the FORTRAN term) effectively EQUIVALENCEd, just by a coincidence of whatever execution-path lead up to them being that way. And there will be no “syntax error” or what-have-you to give you a heads-up about it. (I don’t mean that as Perl Bashing, of course. It’s just a peculiarity to be mindful of.
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why is this
by jdporter (Paladin) on Dec 09, 2011 at 15:05 UTC | |
|
Re^2: Why is this
by JavaFan (Canon) on Dec 11, 2011 at 21:22 UTC |