in reply to Trying to Create and Write to a file

Change your open() call from
open (CREATE,">>pancho.conf");
to
open(CREATE, ">pancho.conf") || die "Could not open pancho.conf: $!\n" +;
Notice that I changed the >> to just a > -- what you've said suggests that appending is less appropriate than truncating and then writing.