...because there's a new line when I call the value from the array, can someone please give me any pointers? When I print the array, it looks okay.
*******
#!/usr/bin/perl
open (old,"old.txt") || die ("There was an error opening file: $!");
@oldnames = <old>;
close (old);
open...