Its always better to use strict before u start a perl program. Most of the times the problem comes because we are not clear of the scoping of the perl variables. Better to use strict.
In your case using strict will solve all the problems that you have.
yeah, but like i said in a previous reply: i didnt and i explained why... bear with me these beginner mistakes, ok?
btw: strict will _show_ the problems i have, not solve :-p i will have to do the solving part, if i'm smart enough..
--
to ask a question is a moment of shame
to remain ignorant is a lifelong shame