looks like perltidy might have messed some of my regex and variable lines up, i'll correct those...