http://qs321.pair.com?node_id=11140774


in reply to Re^3: Perl's feature to determine, in current point of loop, that this is the last one?
in thread Perl's feature to determine, in current point of loop, that this is the last one?

It's so easy to avoid the limitation. Replace $v eq $values[-1] with \$v == \$values[-1]