Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hpcc01!hpccc!okamoto From: okamoto@hpccc.HP.COM (Jeff Okamoto) Newsgroups: comp.lang.perl Subject: Would like to emulate an array of pointers to a structure Message-ID: <12170003@hpccc.HP.COM> Date: 27 Mar 90 16:31:23 GMT Organization: Tendou Dojo Lines: 19 I've got a question that I'm hoping some of you may be able to answer for me. I'm trying to do some manipulations on the password file. What I'd like to be able to do is to somehow be able to reference one entire line of it with a single index value. I know I can do this with an array of entire password file lines, but I don't want to keep having to split each line while searching for a particular entry (e.g., login name). The C equivalent would be an array of pointers to a structure. Is there an easy (and intuitive!) method for doing what I'm trying to do? -- \ oo The New Number Who, \____|\mm Jeff Okamoto //_//\ \_\ HP Corporate Computing Center /K-9/ \/_/ okamoto%hpccc@hplabs.hp.com /___/_____\ ..!hplabs!hpccc!okamoto ----------- (415) 857-6236