in reply to Best method to capture return code from system calls?
my $cpcmd = '/bin/cp'; system($cpcmd $curfile $newfile); [download]