in reply to Scalar looses values outside foreach loop

I have the very uncomfortable feeling that you have just slap-dashed something together, and now you are asking the community to debug your code for you ... by inspection.

Yes, the defects in this code can indeed be located by inspection.   But... how are you going to acquire the ability to do the same?   I am quite serious.   You want to be a fisherman.   You need to learn how to fish ... and how to clean the net ... and how to scrap the barnacles off the boat ... and how far you can actually go on a tank of diesel when the tide is against you ... and ...

Replies are listed 'Best First'.
Re^2: Scalar looses values outside foreach loop
by cipher (Acolyte) on Dec 03, 2010 at 02:57 UTC
    You are right,
    But as I said I am still learning pearl, I am not a programmer and I have recently started learning pearl, The code I posted was small and I asked the community to let me know where I went wrong, I was stuck.
    Answers from Corion and Anonymous explain a lot.
    Thanks.