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

What about
Original Array : 1 6 2 2 7 1 6 99 99 Result: ?

Replies are listed 'Best First'.
Re^4: Ignore a range of numbers in a List
by shmem (Chancellor) on Jun 25, 2017 at 20:28 UTC

    Yeah, that's another big flaw in the OPs code: no handling of unspecified conditions. Without a closing 7, what should an opening 6 have done? Your browser is full of that - implicit close of tags at some place, lacking the closing tag. I don't even want to know how much code has been written to prevent blowing up on that.

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