All you need is an array slice:
## Assume @array contains fields (from wherever) ## Assume @indices contains field numbers to keep (from wherever) @array = @array[ @indices ]; ## Now, @array only contains the fields you want to keep.
In reply to Re^4: Splicing Arrays on pre-defined indices
by BrowserUk
in thread Splicing Arrays on pre-defined indices
by harishnuti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |