my $data = read_file($filename); # or maybe the reader needs to know the file format too? my $data = read_file($filename, $fileformat);