What happens if you add use strict; at the top of your code and prefix your variables with my?
RIP Neil Armstrong
In reply to Re: UDP Client Multiple servers by BrowserUk in thread UDP Client Multiple servers by adwald