Use splice (perldoc -f splice) To delete array index $i splice (@myList, $i, 1)
hth, Sudarsan Sharat Hegde wrote: > Hello, > > I need to delete an element from a list (array). 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. > > What is the alternative? > > Regards, > Sharat > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]