in reply to Re: Read And modify a series
in thread Read And modify a series

My Sincere apologies, Series can be in any order. Not necessarily ascending, can be any random number in-between the 1's. Between the value '5' & '6', as demonstrated below, there will not be any 1's either. Say: my @array1 = (1,1,1,5,3,4,4,4,2,6,1,1,1,1,1); Expected output:(1,1,1,5,3,4,4,4,2,6) or (1,1,1,5,3,4,4,4,2,6,1) : getting anyone of it is fine.

Replies are listed 'Best First'.
Re^3: Read And modify a series
by AnomalousMonk (Archbishop) on May 26, 2015 at 12:38 UTC

    You've been given solutions that will give you either of these outputs. Take your pick.


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

      It works AM, thanks a lot. Good day.