I am currently developing a library for a plethora of perl scripts and was wondering two seperate things, can scalars be passed by reffernence and if so would the resulting regular expression in the library untaint them?
I know my regular expression does untaint it when its just in the script itself, but reusablity is a goal for this project so I would like to put it in the library.
If scalars cannot be passed by refferance but the library can untaint could anyone show me a simple sub which takes the scalar untaints it (this is an example i dont need a working reg-ex already have that, but thank you for thinking of providing one) and returns the value some how or if the untainting failed return some sort of error that can be check for?