in reply to Re: Adding Numbers
in thread Adding Numbers

the output i'm looking for, given '3' and '7' is 3,4,5,6,7

Replies are listed 'Best First'.
Re^3: Adding Numbers
by GrandFather (Saint) on Nov 21, 2010 at 06:26 UTC
    my @range = 3 .. 7;
    True laziness is hard work
Re^3: Adding Numbers
by TomDLux (Vicar) on Nov 22, 2010 at 01:22 UTC

    You want the result to be '3 4 5 6 7' and the actual result is '4 4 4 4 4 ...'. So there's two things wrong, the first is that you start at '$ipa + 1' rather than at '$ipa'. What's the second thing that's wrong?

    As Occam said: Entia non sunt multiplicanda praeter necessitatem.