Hi All,

while(1) {
  #Read from a sub outside of the while loop...
  get_sub();
}

get_sub {
  print $test;
}

I understand that the above code doesn't really say much but it gives a
brief understading of my problem.  Baiscally when I compile the script I
get a compilation error saying...

Name "main::test" used only once: possible typo at ./test line (n).

Now, if I place the sub (get_sub) within the while loop my program works
fine and the error message dissapears.  Is this wise to have to do this
i.e place all my subs inside of while loops?  Is there any explanation
for this or am I just doing something completly wrong?

Regards,

Dan 


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to