in reply to Problem with (recursively?) searching flat file database
If your second example code is returning the whole database, I would guess that $record doesn't contain what you think it contains (you would get the whole file returned if it was an empty string). Other than that try clarifying the problem (maybe by posting some sample data showing what the input file looks like and what the output you are trying to get looks like), as it isn't very clear what you are attempting to do.
p.s. you will get better responses if you pick better titles for your questions, 'Bewildered' doesn't describe the problem.
|
|---|