in reply to Appending two files
Well, the messages pretty much speak for themselves. $scriptname is used in your $usage variable, but never declared. Nowhere do you use the value of $result that you get from GetOptions. I would also go ahead and "use strict;".