in reply to Re: Inverse slices
in thread Inverse slices

While this use of undef works in all perl 5 versions I am aware of, it is in fact not documented. I prefer
@invslice[ @slice_idx ] = ();
--
A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |

Replies are listed 'Best First'.
Re^3: Inverse slices
by Anonymous Monk on Nov 19, 2024 at 00:23 UTC
    While this use of undef works in all perl 5 versions I am aware of, it is in fact not documented
    Really? It didn't work on any perl version I tried. For me, ikegami's slice undef trick only undefined the last element in the slice.

      Fixed.