Help for this page

Select Code to Download


  1. or download this
    use File::Copy; # for move()
    open my $of, '<', $old_file or die "Can't read $old_file: $!";
    ...
    close $nf;
    close $of;
    move $new_file, $old_file;