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


in reply to Re: setuid system() calls on Solaris 11
in thread setuid system() calls on Solaris 11

system ( "/usr/bin/cp -f $version/$obj $dest 2> /dev/null")

The 2> /dev/null is a shell construct for redirecting FD 2 so you would need a shell to handle that. However, why would you want to redirect FD 2 to /dev/null anyway? Surely you want to log the details of any failure?

Furthermore, why fork out to cp when we have File::Copy in core?