Here's a quick example of PERL that listens on a port and writes the sent data to STDOUT.

#!/usr/bin/perl

use IO::Socket;
my $sock = new IO::Socket::INET ( 
   LocalPort => '7070', 
   Proto => 'tcp', 
   Listen => 1, 
   Reuse => 1, 
);

die "Could not create socket: $!\n" unless $sock;

my $new_sock = $sock->accept();
while(<$new_sock>) { print $_; }
close($sock);
Warning: Undefined array key "show-social" in /opt/edoceo.com/www/view/html.php on line 114 Warning: Undefined array key "show-ad-b" in /opt/edoceo.com/www/view/html.php on line 127 Warning: Undefined array key "script" in /opt/edoceo.com/www/view/html.php on line 147