Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!NISC.SRI.COM!cwilson From: cwilson@NISC.SRI.COM (Chan Wilson) Newsgroups: comp.lang.perl Subject: associative arrays? Message-ID: <19469@fs2.NISC.SRI.COM> Date: 2 Aug 90 04:05:48 GMT Reply-To: cwilson@NISC.SRI.COM (Chan Wilson) Organization: Network Information Center; SRI International Lines: 25 I'm fuzzy on the concept of associative arrays, and although I haven't looked deeply, haven't found a definition in any of the texts I've looked into. What I'm trying to do is simulate a two dimensional array, like so: @space[$fileserver,$user]=`rsh $fileserver du -s \ /export/home/$fileserver/$user` On another topic, is there any way to do something like: foreach $machine ('fs1','fs2','fs3') { @$machine[$i++]=`rsh $machine users`; } ^^^^^^^^^ offending statement. Simple questions? --Chan ................ Chan Wilson -- cwilson@nisc.sri.com I don't speak for SRI. Janitor/Architect of comp.binaries.apple2 archive on wuarchive.wustl.edu "a2fx it!" ................