- or download this
use File::Copy;
umask 022 or die "Failed to set umask: $!";
copy $src => $dest or die "Failed to copy: $!";
- or download this
system cp => '-a', $src, $dest;
die "..." if $?;
- or download this
#!/usr/bin/perl
...
__END__
/tmp/one is executable
/tmp/three is executable