http://www.perlmonks.org?node_id=11121467


in reply to Manipulating Array Indexes

Just as a matter of idle curiosity, what do you require to be returned from the following sequences, assuming 5 is the target value?
    (1, 2, 3, 4, 5)
    (1, 2, 3, 4, 5, 6)
    (1, 2, 3, 4, 5, 6, 7)


Give a man a fish:  <%-{-{-{-<