Yes I perfectly understand your logic. I have two rows in the .csv file and lets say the .csv looks like this:
A1 = a B1 = b C1 = c .... etc etc
A2 = 1 B2 = 2 C2 = 3 .... etc etc.
So I want to find the value in Row 2 (A2, B2, C2,...) that corresponds to lets say value "c" in Row1. It is basically like HLOOKUP function in excel. I am not sure if I am clear enough in explaining what I want to do?
| [reply] |
a,b,c
1,2,3
How does any of the fields in line 2 correspond to any of the fields in line 1? I'm afraid I don't follow :)
Edit: Wait, I think I get it now. What you want is a way to tell Perl, "hey, listen. What is the number of the field in the first line that has the value 'c'? Got that? Okay, now give me the value of the field with that number in the second line." Is that what you mean? There are actually several approaches, and I'm coming up with something momentarily. Hold on.
Edit-edit: Yes, got it now. Okay, gimme a couple minutes.
| [reply] [d/l] |
| [reply] |