Feature/stuart perl mods

Here's the list of all my Perl mods, the individual commits might make more sense