It's so easy to avoid the limitation. Replace $v eq $values[-1] with \$v == \$values[-1]
In reply to Re^4: Perl's feature to determine, in current point of loop, that this is the last one?
by ikegami
in thread Perl's feature to determine, in current point of loop, that this is the last one?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |