Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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

by muba (Priest)
on Dec 12, 2012 at 18:22 UTC ( #1008553=note: print w/replies, xml ) Need Help??

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008553]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2018-06-25 15:59 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (127 votes). Check out past polls.