in reply to Picking up information coming out of a loop

push (my @line_no, $.); creates a new lexical scoped @line_no, which has no relation to the @line_no defined outside of the enclosing block.

Next time, please, please indent your code logically, and trim down your program to just a few, relevant, lines. You might actually have solved the problem yourself by going through a reduction process.

Abigail

Replies are listed 'Best First'.
Re: Re: Picking up information coming out of a loop
by jonnyfolk (Vicar) on Dec 12, 2002 at 14:58 UTC
    Ouch! Bottom smacked!
    thanks for your help slife, Abigail-II.

    is there an official guide to indentations? It's all a bit of a mystery to me

    I certainly would have reduced it further if I was sure where the problem is.
    (Every day in every way I will get better and better!)

      You may wish to look at Perltidy. No personal experience, but others have spoken highly of it.