in reply to [Solved] Avoiding repeated undefs
my ($key, $val) = (split(" ", $_))[0,6]; would work, although you might just as well write:
I find the second one more elegant personallymy @values = split(" ", $_); my ($key, $value) = @values[0,6];
Edit: this is not an exact equivalent though, as davies demonstrated below
In Section
Seekers of Perl Wisdom