in reply to Re: Scalar looses values outside foreach loop
in thread Scalar looses values outside foreach loop

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.
  • Comment on Re^2: Scalar looses values outside foreach loop