in reply to Re: Re: Re: assigning flat file dbs to arrays
in thread assigning flat file dbs to arrays
If you have, you should show me the relevant code.
What the code I've provided you with does is the following. For each element in @sidx, copy that element into $line and REMOVE an element from @sidx2 which is put into $premiumline. Note that this means that @sidx2 will be EMPTY at the end of the foreach loop. (To avoid this make a copy of @sidx2 before the foreach loop and unshift off that instead.)
Once we've got $line and $premiumline we join them together into $sline. We then test if $sline matches what we're looking for in either $line or $premiumline and if it does we SAVE (only) $line into $resultline ($premiumline then gets thrown away).
Maybe this isn't what you want to be doing. Maybe you want to be doing this:
Maybe you're trying to do something else...
Since you haven't specified what you want to be doing I think it would be futile for me to guess. Think about what you want to do in a broader sense and I'll be able to help you better.
All the best,
jarich
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: assigning flat file dbs to arrays
by Dente (Acolyte) on May 03, 2004 at 23:32 UTC | |
by jarich (Curate) on May 05, 2004 at 00:41 UTC |