#!/usr/bin/perl ## Modify below to the absolute path of your input file: open(INPUT, "/hsphere/local/home/ssscc/ssscc.org/registered.bout") or Error("Can't open input: $!"); ## Here we pull in the data and build a simple structure, we'll sort ## it later during output: while() { @line = split(/\|/); my ($class, $scca, $first, $last, $make, $model, $year, $number); $class = (defined($line[1]) ? "\U$line[1]" : ""); # force uppercase $scca = (defined($line[5]) ? "\U$line[5]" : ""); # force uppercase $first = (defined($line[6]) ? $line[6] : ""); $last = (defined($line[7]) ? $line[7] : ""); $make = (defined($line[2]) ? $line[2] : ""); $model = (defined($line[3]) ? $line[3] : ""); $year = (defined($line[4]) ? $line[4] : ""); $number = (defined($line[0]) ? $line[0] : ""); $entries{"$class"}{"$number"} = "
| SSSCC Class | SCCA Class | Name | Number | Car |
|---|---|---|---|---|
| $class | ||||
\n";
print join("
", @msg);
print "
\n";
print "PATH: $ENV{'PATH'}
\n";
print "PWD: " . `pwd`;
print "";
die(@msg);
}