in reply to Re^3: Splicing Arrays on pre-defined indices
in thread Splicing Arrays on pre-defined indices

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.

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."