In other languages I\'ve used like Erlang and Python, if I am splitting a string and don\'t care about one of the fields, I can use an underscore placeholder. I tried this
You can assign to (undef).
(undef)
(undef, my $id) = split(/=/, $fields[1]);
You can even use my (undef).
my (undef)
my (undef, $id) = split(/=/, $fields[1]);
You could also use a list slice.
my $id = ( split(/=/, $fields[1]) )[1];