On Fri, Dec 21, 2001 at 09:36:03AM +0000, Sharat Hegde wrote: > I need to delete an element from a list (array).
Array is correct. You can't delete elements from a list. > The delete function does not seem to work. For example if I need to delete > element number "i" from the list "myList", then the code > > delete ($myList[$i]); > > does not seem to be working. Gives a compilation error. This code, in itself, does not cause a compilation error. What error are you getting? > What is the alternative? splice(@myList, $i, 1); Michael -- Administrator www.shoebox.net Programmer, System Administrator www.gallanttech.com -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]