9 lines
146 B
Perl
9 lines
146 B
Perl
#!/usr/bin/perl
|
|
|
|
|
|
use IO::Socket;
|
|
|
|
my $server = "localhost";
|
|
my $fh = IO::Socket::INET->new($server);
|
|
my $line = <$fh>;
|
|
print $line; |