$ perl -pe 's/2005\n/2005/' filename
$ perl -pe 's/([^;])\n/\1/' filename
$ perl -w test.pl
$ perl -pi -e 's/2009/2010/' filename