| Column |
Meaning |
| Name |
Name of the State |
| Abrev |
Two letter abreviation for the state (California is
'ca') |
| Pop |
Population of the state |
| Column |
Meaning |
| City |
Name of the city |
| State |
Two letter abreviation for the state containing this
city |
| Pop |
Population of the city |
| Column |
Meaning |
| State |
Two letter abreviation for the state containing this
county |
| City |
Name of the county |
| Dem |
Number of people who voted democratic |
| Rep |
Number of people who voted republican |
#!/usr/bin/perl -w
use Voter;
$v1 = Voter->new();
$v2 = Voter->new();
$v1->repub(10);
$v1->demo(20);
$v2->repub(30);
$v2->demo(3);
print "The Winner is " . $v1->winner() . "\n"; # should say "Dem"
print "The Winner is " . $v2->winner() . "\n"; # should say "Rep"