http://www.perlmonks.org?node_id=735285


in reply to Re^4: One true regexp for untainting windows filenames?
in thread One true regexp for untainting windows filenames?

Safe to use in qx//; in taint mode

In such general terms, it's impossible. You can make it so qx// doesn't croak, but you can't make it safe. Need more info.