#!/usr/bin/perl #use warnings; #use strict; use IO::Socket; my $server = shift; my $fh = IO::Socket::INET->new($server) or die "Error: $!"; my $line = <$fh>; print $line; #### C:\Documents and Settings\admin\Desktop\Scripts>perl network.pl mail.hotmail.com:smtp Error: Unknown error at network.pl line 8. C:\Documents and Settings\admin\Desktop\Scripts>