in reply to RE: RE: Re: Breaking a Loop
in thread Breaking a Loop

Right, but there is still the problem that the array isnt defined until the end of the loop and that the sub routine has to be called within the loop. I need the max value of the final completed array, and returned into the loop..:-\.. when i wrote a subroutine it kept running it before it was called within the loop, and i would never get the final max value until the very end of the loop, by which point it was too late. thanks
Dipul Patel

Replies are listed 'Best First'.
RE: RE: RE: RE: Re: Breaking a Loop
by merlyn (Sage) on Oct 10, 2000 at 23:33 UTC
    You can't know something before you know it, unless you use Time::Machine.

    Time to rethink your algorithm. Say in english what you want to do. Avoid the word "loop" or "array". Just talk about what you want done, because you are now hopelessly down in the guts of the implementation with muddy thinking, and no-one can help you from there.

    -- Randal L. Schwartz, Perl hacker