printf "%s\0" "${NUMS[@]}" | perl -we 'my @NUMS; { local $/ = "\0"; chomp(@NUMS = ); }; warn "<<<$_>>>\n" for @NUMS; '