|The stupid question is the question not asked|
Re: reading the 5th element from file doesn't work.by 2teez (Priest)
|on Apr 24, 2013 at 05:38 UTC||Need Help??|
2. But it seem, to me you want the 5th element of each line, which in that case you need do this:
a.) The scope of the array variable "@string" in the both cases,
b.) In the second script, you don't need the function join, because it Joins the separate strings of LIST into a single string with fields separated by the value of EXPR which in your case is ',', so your 5th element of each line has an uninitialized value.
That been said, there are a number of things, I think one should take note:
If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me