in reply to Re: How to correct code
in thread How to correct code

I would strongly urge you to read a book on Perl
Good advice for new in perl...