##
my $file = 'somefile.txt';
open (THEFILE, ">$file") or
die "Could not create $file - $!\n";
##
##
my $command = "/bin/cp fileone filetwo";
system ($command) and
die "Fooey, $command - $!\n";
##
##
my $command = "/bin/cp fileone filetwo";
system ($command) &&
die "Fooey, $command - $!\n";