in reply to Re: Find Length Of Longest Ascending/Descending Sequence
in thread Find Length Of Longest Ascending/Descending Sequence

Does this /(\d)(\d)/g; pos($_)--; thing have some advantage over /(\d)(?=\d)/g; ? I mean, I wouldn't be surprised if it made sense given the strange hacks with pos() I've seen, but could you give some explanation please?

Replies are listed 'Best First'.
Re^3: Find Length Of Longest Ascending/Descending Sequence
by LanX (Saint) on May 20, 2011 at 13:48 UTC
    Did you try it? :)

    Cheers Rolf

    PS: Hint

    $2 is undef