--- /dev/null
+#!usr/bin/perl -w
+use strict;
+
+system 'clear';
+
+# temp script used to fix <bp:AUTHORS> elements that mistakenly refer to years in
+# parentheses. replaces those elements with <bp:YEAR>.
+
+my $dir = "/home/preecej/Documents/projects/reactome/aracyc_to_reactome_conversion/aracyc_data/";
+
+open(in_file, $dir . "test_year_swap.owl");
+open(out_file, ">>" . $dir . "test_year_swap_fixed.owl");
+
+my $i = 0; # limiter for testing
+
+while (<in_file>)
+{
+ $i++;
+
+ # read the next line of the file
+ my $line = $_;
+ chomp $line;
+
+ # is it a bad author?
+ if ($line =~ /<bp:AUTHORS rdf:datatype="http:\/\/www.w3.org\/2001\/XMLSchema#string">\(/)
+ {
+ print "$i: $line\n";
+ # change the line to a well-formatted year tag
+ $line =~ s/AUTHORS/YEAR/g;
+ $line =~ s/\(//;
+ $line =~ s/\)//;
+ $line =~ s/string/int/;
+ print "$i: $line\n";
+ }
+ print out_file "$line\n";
+
+ #last if $i > 1000; # let's test w/ low numbers for now
+}
+
+close in_file;
+close out_file;
+
+# clean up
+exit;