note
7stud
<p>I have a follow up question: how do you interpret the left side of the following line:</p>
<code>
*{"color"} = sub {#do something};
</code>
<p>"Go to the symbol table and look up the name color and grab the glob slot"?</p>
<p>This is from Mastering Perl:
<pre>
Package Identifier Type Variable
+------> SCALAR - $bar
|
+------> ARRAY - @bar
|
+------> HASH - %bar
|
Foo:: -----> bar -----+------> CODE - &bar
|
+------> IO - file and dir handle
|
+------> GLOB - *bar
|
+------> FORMAT - format names
|
+------> NAME
|
+------> PACKAGE
</pre>
869369
869371