Help for this page

Select Code to Download


  1. or download this
    if (-f $delTemp){
        unlink $delTemp or die "can't delete >$delTemp< file: $!";
    }
    
  2. or download this
    my $a = 'a.txt';
    my $b = 'b.txt';
    ...
    copy $a, $b or die "can't copy $a to $b: $!";
    
    die "can't find copied file $b: $!" unless -f $b;