in reply to Prototyping - is it necessary?

Just use
sub getFileData {
without parentheses after the function name.