in reply to Getting "un initialized value" error though variable is initialized. Please help.

Two small points:

It's a "warning," not an "error."

and

Since "formatting" was initially an issue, suggest you consider using indentation -- in the interest of readability. This particular snippet isn't hard, of course, but as you create more complex code, white space can be a huge help.

  • Comment on Re: Getting "un initialized value" error though variable is initialized. Please help.