# Load each record
while (<>) {
-
+ s/\r\n/\n/g;
# print STDERR "Loaded this line: " . $_;
# Is this the start of a new record?
next;
}
+ # Is this a FORM= line (which can be ignored)?
+ if ( /^FORM=/ ) {
+ next;
+ }
+
# If this isn't the start of the new record, it's a new line in the present record.
$line++;