View Single Post
  #2  
Old 02-15-2012, 08:32 PM
pfyon's Avatar
pfyon
Discordant
 
Join Date: Mar 2009
Location: Ottawa
Posts: 495
Default

I haven't looked at the documentation for the perl function or the source, but are items enumerated from 0? If so, you might need something like

Code:
$corpse->RemoveItem($corpse->CountItems() - 1);
to remove the last item (since item 1 is at index 0, last item would be at index -1).
Reply With Quote