First off, what error are you getting? Just saying that it's "not working for me" isn't really helping us to help you. Second off, if you are wanting to append names onto the end of a file, you should open FILE the second time like
open(FILE, ">>$stdInfo")... and then print to FILE if the new name isn't already in your array. But, I wouldn't use an array, I'd use a hash, it's easier to check if it
exists();. Finally, in your code, you don't have any method to actually
add any names to the file, you don't prompt for anything but a number for a student, what's that supposed to relate to?
- - arden.