$line[4].="alias: $1, $line[0]\"";
Both your and Roger's example snippets modify the 5th element. The original question said, "I need to manipulate the contents of the forth element to contain what i want." The 4th element's index is, of course, 3, not 4 (assuming nobody tinkered with $[).
Dave
In reply to Re: Re: Strip data from end of an element of an array
by davido
in thread Strip data from end of an element of an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |