in reply to Re^2: Avoiding repeated undefs
in thread [Solved] Avoiding repeated undefs

Similar approach:
( my $key, (undef) x 5, my $val) = split(/\s+/, $_);
Note: 'undef' must be enclosed with parentheses to force list context for 'x' operator.

Replies are listed 'Best First'.
Re^4: Avoiding repeated undefs
by choroba (Cardinal) on Feb 28, 2019 at 06:37 UTC