in reply to How to slice complicated string into an array

If using match operator in list context, then also prefix with grep defined,

Replies are listed 'Best First'.
Re^2: How to slice complicated string into an array
by Anonymous Monk on Feb 26, 2016 at 11:49 UTC
    That didn't come to my mind, thank you! grep { defined } it is.