Re: A basic question about arrays

2002-07-27 Thread Steve Grazzini
Eric Preece <[EMAIL PROTECTED]> wrote: > Yet another newbie question. I have a file, each line > is a pipe delimited list (user name and password). I > want to open the file, search through each line using > the first entry as a key (so this may turn into a > question about hashes, but I am no

Re: A basic question about arrays

2002-07-26 Thread Connie Chan
[] > -My Response- > > If you only want to go through the file once, it may not make sense to go to > the trouble of creating a hash. Bottom line is that you probably want > something like this: > > # loop through the file line by line > while () { > # strip the trailing newline fro

Re: A basic question about arrays

2002-07-26 Thread John W. Krahn
Eric Preece wrote: > > Hello, Hello, > Yet another newbie question. I have a file, each line is a > pipe delimited list (user name and password). I want to open > the file, search through each line using the first entry as > a key (so this may turn into a question about hashes, but I > am not s

A basic question about arrays

2002-07-26 Thread Eric Preece
Hello, Yet another newbie question. I have a file, each line is a pipe delimited list (user name and password). I want to open the file, search through each line using the first entry as a key (so this may turn into a question about hashes, but I am not sure). If I get a positive result I want

RE: A basic question about arrays

2002-07-26 Thread Mark Anderson
-Original Message- From: Eric Preece [mailto:[EMAIL PROTECTED]] Sent: Friday, July 26, 2002 4:09 PM To: [EMAIL PROTECTED] Subject: A basic question about arrays Hello, Yet another newbie question. I have a file, each line is a pipe delimited list (user name and password). I want to