./myprog.pl host.name.here 4567, then you would get the hostname from $ARGV[0] and the port from $ARGV[1] (@ARGV holds stuff from the command line). Your structure should then be similar to:
my $client = IO::Socket::INET->new(PeerAddr => $ARGV[0], PeerPort => $ARGV[1], Proto => 'tcp');
In reply to Re: exchanging strings on the network
by Adrade
in thread exchanging strings on the network
by bahadur
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |