- if ($sep eq '-' && $final_year + 1 == $this_year)
- {
- $year_lines =~ s/$final_year/$this_year/;
- }
- elsif ($sep ne '-' && $final_year + 1 == $this_year)
- {
- $year_lines =~ s/$final_year/$final_year-$this_year/;
- }
- else
- {
- $year_lines =~ s/$final_year/$final_year, $this_year/;
- }