home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!hp-cv!sdd.hp.com!usc!news!netlabs!lwall
- From: lwall@netlabs.com (Larry Wall)
- Newsgroups: comp.lang.perl
- Subject: Re: What's the best idiom for storing keyed records?
- Message-ID: <1992Aug19.071854.8942@netlabs.com>
- Date: 19 Aug 92 07:18:54 GMT
- Article-I.D.: netlabs.1992Aug19.071854.8942
- References: <l90cclINNrjo@jethro.Corp.Sun.COM> <1992Aug19.004516.12825@news.eng.convex.com>
- Sender: news@netlabs.com
- Organization: NetLabs, Inc.
- Lines: 20
- Nntp-Posting-Host: scalpel.netlabs.com
-
- In article <1992Aug19.004516.12825@news.eng.convex.com> tchrist@convex.COM (Tom Christiansen) writes:
-
- : Make sure you remember that $parent{'adam'} is 'adam'. :-) With a
- : little care, this approach can be used to implement general graph
- : traversal algorithms as well.
-
- Er, uh, I have it on pretty good authority (Luke, in actual fact :-) that
- $parent{'adam'} eq 'god'. I'll leave to you to figure out $parent{'god'}...
-
- Hmm, I guess in my theology that makes $sibling{'adam'} eq 'jesus'... :-)
- That makes Jesus his own great, great, great...lessee...great**72 uncle
- or so. Better check that one out:
-
- $ perl -e 'print $sibling{ eval "\$parent{" x 73 . "jesus" . "}" x 73 }'
- jesus
- $
-
- Yep. :-)
-
- Larry
-