Capturing in one go will return qw(123 56 543) instead of qw(123 56 6543);
Which isn't a problem when you just want the length. The result is 1 more than the length of the longest capture. That's why I increment $longest at the end.
...or rather, that's why I was planning on incrementing $longest at the end. Fixed.
In reply to Re^3: Find Length Of Longest Ascending/Descending Sequence
by ikegami
in thread Find Length Of Longest Ascending/Descending Sequence
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |