in reply to How to pass a object value to global array in threads

I am getting an error run time error where I am trying to store value in an array

You are passing a reference of the array TelnetHandler to sub ConnectToTelnet, and assign it there to $Ary_ref , but later, you use the array @TelnetHandler:

push (@TelnetHandler, \$t_send);

That should be

push (@$Ary_ref, \$t_send);

update: Please use strict to see what is going wrong.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'