Return-Path: Mailing-List: contact community-help@apache.org; run by ezmlm Delivered-To: mailing list community@apache.org Received: (qmail 16561 invoked from network); 10 Jan 2003 08:32:51 -0000 Received: from unknown (HELO kurgan.lyra.org) (198.144.203.199) by daedalus.apache.org with SMTP; 10 Jan 2003 08:32:51 -0000 Received: (from gstein@localhost) by kurgan.lyra.org (8.9.3/8.9.3) id AAA27788 for community@apache.org; Fri, 10 Jan 2003 00:34:59 -0800 X-Authentication-Warning: kurgan.lyra.org: gstein set sender to gstein@lyra.org using -f Date: Fri, 10 Jan 2003 00:34:59 -0800 From: Greg Stein To: community@apache.org Subject: Re: python foo Message-ID: <20030110003459.A27552@lyra.org> References: <20030109140950.E25893@lyra.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from rbowen@rcbowen.com on Thu, Jan 09, 2003 at 05:39:42PM -0500 X-URL: http://www.lyra.org/greg/ X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thu, Jan 09, 2003 at 05:39:42PM -0500, Rich Bowen wrote: >... > > (and don't ask me about the time I tried to do a hash of hashes of hashes in > > Perl... even with Perl hacker help, I gave up; Perl just wouldn't do it) > > Oh, come on. I do hashes of hashes of hashes frequently in Perl. And > hashes of hashes of arrays of hashes of arrays. And ... well, other > permutations. Sure, I know it is possible, but really. At the time, it just didn't work. Really. Not some kind of lamer-fu. > And the syntax for a multi-dimensional array is almost > indistinguishable from the example you gave in Python. > > $matrix = [ > [1, 2, 3], > [4, 5, 6], > [7, 8, 9] ]; > print $matrix->[1][2]; Very cool. Man, I wish that woulda worked when I tried it. > A little more punctuation, but, then, you'd expect that from Perl. > > You must have a very lame Perl hacker at your disposal. ;-) This was sometime around 1996, I believe. Perl 4, if I recall. Is it possible that it wasn't so easy in Perl 4? And yah... if the two guys that I was getting help from didn't get it, then I'd be surprised (I respect the guys, quite a bit) Cheers, -g -- Greg Stein, http://www.lyra.org/