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

until (our $wwn eq "q")

This is not line 8. Please do post the exact code that produces the exact error message.

But while we are talking about this line - where does $wwn get the value prior to this comparison? What is the initial value of $wwn?