eval { copy($fileOne,$fileTwo); }; if( $@ ) { die "Did not copy: $@"; }