On Sun, 26 Aug 2007 01:00:31 +0000, Justin The Cynical wrote:
> On Aug 24, 9:11 am, [EMAIL PROTECTED] (Randal L. Schwartz) wrote:
>> That's because (a) an arrayref is still a single value, so we haven't really
>> lied, so much as just simplified to what can be handled in the first 30 hours
>> with Perl, and (b) you *still* can't make a hash of arrays, just a hash of
>> arrayrefs, and that distinction is *important*.
> 
> Ok, so it's not an array that is in the hash, but a "symlink" (which
> is a single value) to an actual array that lives in memory alone and
> has no real reference outside of the hash, correct?

Don't use the term "symlink", however tempting, or you'll confuse
yourself and others about real symlinks.  Yes, it's not an array in the
hash; it's a scalar containing a *reference* to an array, and there may or
may not be other references to that array elsewhere in the program
depending on how the reference was constructed (with the anonymous
arrayref constructor or with the reference to a named array).

-- 
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to