in reply to Re: What's in a Reference?
in thread What's in a Reference?

Different question than last night. He's asking for the relation between the following and $y.
SV = RV(0x63fde0) at 0x604fc0 REFCNT = 1 FLAGS = (PADBUSY,PADMY,ROK) RV = 0x604fa0 SV = IV(0x62de60) at 0x604fa0 REFCNT = 2 FLAGS = (PADBUSY,PADMY,IOK,pIOK) IV = 42 <---

Replies are listed 'Best First'.
Re^3: What's in a Reference?
by almut (Canon) on Jul 15, 2010 at 07:40 UTC

    Well, I don't know what was being discussed last night, but I understand the question kind of like this:

    "A C reference/pointer holds an address, what would you call the analogous thing which a Perl reference holds?"  As the subject says: "What's in a reference?"

    Anyhow, only Xiong call tell what he really meant.

      Ah right, I thought he asked

      $3 = 3; $2 = \$3; 3 is the ________ of $2

      instead of

      $3 = 42; $2 = \$3; 3 is the ________ of $2

      There's not even a 3 in his setup.

        Since he starts of with addresses 1 2 3, then said the sigil '$' means 'address', I just assumed he meant $3