in reply to Re: typeglob/symbolic reference question
in thread typeglob/symbolic reference question
i like to read the ampersand in similar way to reading C, where it's literally "address of" operator.
It's never anything like the "address of" operator in Perl. In fact, it's often used to do the opposite (dereference a code ref).
so in that context the example line starting with ampersand would read: the address of an anonymous sub containing code/literal "color" is assigned the sub on the right hand side.
Which goes to show your way to read the ampersand is wrong. Nothing of the kind happens.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: typeglob/symbolic reference question
by aquarium (Curate) on Nov 04, 2010 at 05:05 UTC | |
by ikegami (Patriarch) on Nov 04, 2010 at 06:16 UTC | |
by chromatic (Archbishop) on Nov 04, 2010 at 19:12 UTC | |
by ikegami (Patriarch) on Nov 04, 2010 at 22:49 UTC | |
by chromatic (Archbishop) on Nov 04, 2010 at 22:58 UTC |
In Section
Seekers of Perl Wisdom