in reply to Split and hash

You get four warnings and four blank lines for output because %seen doesn't contains anything. The text you want to is in $version. If you want it in %seen, put it in %seen.