Hi, I posted a bug report yesterday with a complicated script and worked to make it simpler. Now I think it's probably not a bug but I'm still unable to find a solution. My new definition of the problem is sent in 2 attachments and can also be seen on "https://gist.github.com/emilbarton/7d6671529b0fd6d90423" Thanks in advance for your answer.
emilbarton
150927-solution_attempt-server-1.pl
Description: Perl program
150927-solution_attempt-server-4.pl
Description: Perl program