Is the method i am using ok? I'm just wondering if there is a better, more solid way of doing this?
I am trying to keep clear of adding perl modules as my sysadmin doesn't allow it, but i think we are on perl 5.6.something so i am not sure what modues are included with that release.