Hi POJ, Thanks for your response.
Here is the output of the program you gave . This works fine, the problem occurs when I try to connect to remote server and execute that socket, the result doesn't stop printing. It goes into endless loop.$: cat source.csv 123.com 456.com 789.com $: cat destination.csv bc.com,3080 def.com,4560 $: ./new2.pl source.csv destination.csv $VAR1 = [ "123.com", "456.com", "789.com" ]; $VAR2 = [ "bc.com,3080", "def.com,4560" ]; Source [123.com] Destination [bc.com:3080] Destination [def.com:4560] Source [456.com] Destination [bc.com:3080] Destination [def.com:4560] Source [789.com] Destination [bc.com:3080] Destination [def.com:4560]
In reply to Re^6: socket checker in multiple hosts for multiple destination (Perl 6)
by Bams
in thread socket checker in multiple hosts for multiple destination
by Bams
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |