On Feb 3, Michael C. Davis said: >The CPAN documentation for Apache::Reload refers to "pseudohashes". What >is a pseudohash? Does anyone know what they could be referring to?
The pseudohash was a short-lived hybrid array-hash. Briefly put: $phash = [ { this => 1, that => 2, those => 3 }, "foo", "bar", "blat", ]; An array reference with a hash reference as its first element was given magical abilities. For $phash, both $phash->[2] and $phash->{that} return "bar". Basically, if the magic didn't happen, you'd have to write $phash->[ $phash->[0]{$KEY} ] for $phash->{$KEY} to work. It turns out pseudohashes are a bad idea. So they're not supported anymore. And anyway, the documentation you pasted says NOT to use them. >"The short summary of this is: Don't use psuedohashes. Use an array with >constant indexes. Its faster in the general case, its more guaranteed, and >generally, it works. > >"The long summary is that I've done some work to get this working with >modules that use psuedo hashes, but its still broken in the case of a >single module that contains multiple packages that all use psuedohashes." -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>