my %fileInfo = func(); sub func { ...put stuff in %fileInfo... return %fileInfo; }