So what would the hash_ref read like?<br>
<br>
$author_of_ref->{'Perl Best Practices'} = 'Damian Conway';<br><br><div><span class="gmail_quote">On 10/6/05, <b class="gmail_sendername">Jay Strauss</b> <<a href="mailto:me@heyjay.com">me@heyjay.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Paul Baker wrote:<br>> On Oct 5, 2005, at 9:55 PM, Jay Strauss wrote:<br>><br>><br>
>>In PBP (I haven't finished it yet) but so far he hasn't recommended a<br>>>naming for a hash_ref.<br>>><br>>>hashes are blah_of<br>>>refs are blah_ref-><br>><br>><br>> I haven't gotten my copy yet. What's the reasoning behind the _of for
<br>> hashes?<br>><br><br>Actually on re-reading, PBP recommends ending the hash name in a<br>preposition specifically:<br><br>"Moreover, because hashes often store a property that's related to their<br>key, it's often even more readable to name a hash with a singular noun
<br>followed by a preposition"<br><br>$author_of{'Perl Best Practices'} = 'Damian Conway';<br><br>Ironically, he goes on to give some examples that don't end in a<br>preposition. I guess it's more of a guide-line. Try to make it read
<br>naturally.<br><br>Jay<br><br>_______________________________________________<br>Chicago-talk mailing list<br><a href="mailto:Chicago-talk@pm.org">Chicago-talk@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/chicago-talk">
http://mail.pm.org/mailman/listinfo/chicago-talk</a><br></blockquote></div><br>