in reply to Untainting known good data

The perlsec (for security) documentation explains tainting in general and shows how to untaint variables.