http://qs321.pair.com?node_id=486206


in reply to Best method to capture return code from system calls?

In my experiance with running sytem calls on SUN I have always built my command like this:

my $cpcmd = '/bin/cp'; system($cpcmd $curfile $newfile);
But there is a better way of doing this and that would be using File::Copy take a look at that.
SUNADMN
USE PERL