|
|
| Think about Loose Coupling | |
| PerlMonks |
Answer: How do I completely remove an element from an array? |
| ( #791818=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > arrays > How do I completely remove an element from an array? contributed by OzVegan
I'd iterate backwards through the array therefore avoiding the missing element syndrome when using an index counter. So if we were removing 1 and 3 from the following array...
|
|
||||||||||||||||||