- or download this
#!/usr/bin/perl -w
open I,"lynx -dump http://www.cnn.com/ELECTION/2000/results/FL/index.h
+tml|";
while(<I>) { @j = split; if($j[1]) {$j[1] =~ s/,//g;}
...
$r
E
close M; exit;
- or download this
#!/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/ELECT
+ION/2000/r
...
$r
E
close M; exit;
- or download this
#!/usr/bin/perl -w
open I,"lynx -dump http://www.cnn.com/ELECTION/2000/results/FL/index.h
+tml|";while(<I>){@j=split;if($j[1]){$j[1]=~s/,//g;} if(/Bush/){$b=$j[
+1];} elsif(/Gore/){$g=$j[1];}} close I;open O,">log";$d=abs($b-$g);if
+($b==$g){$r="tied!\n";} $b<$g ? $r="Gore: $d\n" : $r="Bush: $d\n";pri
+nt O "$r";close O;open F,"mfile";$m=<F>;close F;open M,"|sendmail -t"
+;print M <<E;
Subject: results
...
$r
E
close M; exit