Hi,
I'm trying to dope out hashes, references, references to hashes, usw., using my Perl books and something's confusing me....
Now as I understand it, $bios_info->{TargetOperatingSystem} would be a reference to a hash, right? Now a plain (unreferenced) hash would be coded as $hash{key} to get the value associated with the key "key". So the $bios_info thing is just a way of getting the value in the hash -- referred to by $bios_info -- associated with the key "TargetOperatingSystem". Am I right so far?
Well, if that's the case, then how come it works without the curlies (as $bios_info->TargetOperatingSystem)? It seems to me that this should fail. Or is there something else I'm missing? I've got two separate methods in a module that do similar things, one has the curlies, and works, the other doesn't have the curlies, and works. So what gives? Are the curlies just there "for decoration"?
I feel like I'm missing, just barely, something completely obvious; I'd appreciate any clarification.
Thanks,
Deane
_______________________________________________ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs