>>>>> "Craig" == Craig Sharp <[EMAIL PROTECTED]> writes:
Craig> my %servers; (This is defining a hash?) Craig> open (I understand) Craig> { Craig> chomp (my @temp = <SVRS>); (Removing the newline from each entry) Craig> @server{ @temp } =(); (What's this do?); Craig> } It's a hash slice, which contrary to the sound, is not a really bad-flavored soft drink. It selects all elements in %server with keys defined by the list from evaluating @temp in a list context. The values being assigned come from the right of the equals, but there are none, so all it does is *create* those elements and provide them with *undef* values. Nearly always, this means that the hash is being used as a "set" type rather than a key-value data structure, and that exists() will be used later to see if an element has a key, regardless of the value. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]