#!/usr/bin/perl -w use strict; my $b; my $g; my $r; die "lynx failed\n" unless open I,"lynx -dump http://www.cnn.com/ELECTION/2000/r esults/FL/index.html|"; while() { my @j = split; if($j[1]) {$j[1] =~ s/,//g;} if (/Bush/) { $b = $j[1];} elsif (/Gore/) { $g = $j[1];} } close I; open O, ">log" or die "log failed\n"; my $d = abs($b-$g); if ($b == $g) {$r="tied!\n";} $b < $g ? $r="Gore: $d\n" : $r="Bush: $d\n"; print O "$r"; close O; open F,"mfile" or die "no mailfile\n"; my $m = ; close F; open(M,"|sendmail -t") or die "couldn't sendmail\n"; print M <