in reply to Re: Strip data from end of an element of an array
in thread Strip data from end of an element of an array
$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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Strip data from end of an element of an array
by Roger (Parson) on Nov 14, 2003 at 23:56 UTC |