use strict; use warnings; use IO::Socket::INET; require "functions.pm"; our $socket = new IO::Socket::INET ( PeerAddr => '127.0.0.1', PeerPort => 16001, TimeOut => "10", Proto => 'tcp', ) or die "There is no connection to the SUPPY Server..........\n"; my $itemfile = 'inumlist.txt'; #my $send; open (FILE,$itemfile) or die "Cannot file file"; while () { my $print = sup09($_); print "$print"; };