in reply to Re: Hashes... Light switch isn't coming on
in thread Hashes... Light switch isn't coming on

Note that a pointer is not the same as a reference. A pointer points to a memory location where a value might be stored, whereas a reference —at least in Perl parlance— points to a value.

  • Comment on Re^2: Hashes... Light switch isn't coming on

Replies are listed 'Best First'.
Re^3: Hashes... Light switch isn't coming on
by jethro (Monsignor) on Dec 13, 2012 at 12:41 UTC

    Wikipedia says

    While "pointer" has been used to refer to references in general, it more properly applies to data structures whose interface explicitly allows the pointer to be manipulated (arithmetically via pointer arithmetic) as a memory address...

    So, while you are correct that there is a subtle difference between those words, in a language where low-level pointers don't exist it should be obvious that pointer is an alias for reference

    But thanks for the info, I wasn't really aware of the distinction