home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!caen!kuhub.cc.ukans.edu!spssig.spss.com!news.oc.com!convex!tchrist
- Newsgroups: comp.lang.perl
- Subject: Re: two-way associate arrays
- Message-ID: <1992Jul29.164546.28483@news.eng.convex.com>
- From: Tom Christiansen <tchrist@convex.COM>
- Date: Wed, 29 Jul 1992 16:45:46 GMT
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- Sender: usenet@news.eng.convex.com (news access account)
- References: <1992Jul29.161401.26604@homebase.vistachrome.com>
- Distribution: usa
- Organization: CONVEX Realtime Development, Colorado Springs, CO
- Originator: tchrist@pixel.convex.com
- Nntp-Posting-Host: pixel.convex.com
- X-Disclaimer: This message was written by a user at CONVEX ComputerCorp. The
- opinions expressed are those of the user andnot necessarily those of CONVEX.
- Lines: 18
-
- From the keyboard of andy@homebase.vistachrome.com:
- :I was wondering if there was a way to generate a 2-dimensional
- :array in Perl. For example:
- :
- : news["fromsite"]["tosite"]++
- :
- :To track news traffic through.
-
- Sure: $news{"fromsite", "tosite"} will probably work best, although with
- *references, anything is possible to the relentlessly determined perl
- programmer.
-
- --tom
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
-
- Though I'll admit readability suffers slightly...
- --Larry Wall in <2969@jato.Jpl.Nasa.Gov>
-