Not just in taint mode, but properly untainting (see Untaint.pm, and perlsec), but also calling system in a safe way. Read perlsec (I wish it was named perlsex, since that is what I always seem to type) over to see how to safely make system() calls.
Cheers,
KM