- or download this
use warnings;
use strict;
- or download this
use Time::Local;
$today = timelocal(localtime);
- or download this
$today = time;
- or download this
$datafile=`cat ../hosts/iplist.txt | sort -r | sort -u -t ',' -k 2,2 >
+ ../hosts/latestip.txt`;
- or download this
$datafile = `sort -r ../hosts/iplist.txt | sort -u -t ',' -k 2,2 > ../
+hosts/latestip.txt`;
- or download this
my $count = 0;
- or download this
open (DATA,"/home/myplace/hosts/latestip.txt") || die ("Can't Open dat
+a File \n");
@data=<DATA>;
close DATA;
- or download this
open PIPE, '-|', 'sort -r ../hosts/iplist.txt | sort -u -t ',' -k 2,2'
or die "Cannot open pipe from sort because: $!";
...
close PIPE or warn $! ? "Error closing sort pipe: $!"
: "Exit status $? from sort";
- or download this
$x=0;
- or download this
sub header_response
{
...
print " </BODY></HTML>\n";
return;
}
- or download this
print <<'HTML';
Content-type: text/html
...
<BR><BR><BR><BR>
</BODY></HTML>
HTML