Ryan Perry wrote: > Generally, your hash value is larger than you key ( $hash{key}="Some > text, maybe a sentence or two...."). Is there any reason I should not > reverse this relationship? ($hash{"Some text, maybe a sentence or > two...."}='key')
The only rules are that hash keys are converted to strings, they are unique and they are immutable (unless you are using a tied hash that changes that behaviour.) Other than that there are no preset limits on Perl's data. perldoc perldata [snip] DESCRIPTION Variable names Perl has three built-in data types: scalars, arrays of scalars, and associative arrays of scalars, known as "hashes". A scalar is a single string (of any size, limited only by the available memory), number, or a reference to something (which will be discussed in perlref). Normal arrays are ordered lists of scalars indexed by number, starting with 0. Hashes are unordered collections of scalar values indexed by their associated string key. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>