in reply to Re^2: Ignore a range of numbers ina List
in thread Ignore a range of numbers ina List

What's supposed to happen if a "start" code for an exclusion sequence is seen, but no corresponding "stop" code is ever seen?

If the RHS of the flip-flop operator never gets true, then the flip-flop just stays as it is. Hence after 7,4 the 6 turns the flip-flop on, and 6,5 aren't pushed onto @copy.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Replies are listed 'Best First'.
Re^4: Ignore a range of numbers ina List
by AnomalousMonk (Archbishop) on Jun 25, 2017 at 07:54 UTC
    Hence after 7,4 the 6 turns the flip-flop on, and 6,5 aren't pushed onto @copy.

    I understand that, but what I was confused about was whether pr33 wanted the 6, 5 to appear in the output or not. pr33 seems to have answered this and related questions here. (At last! A quasi-test-based response :)


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