Help for this page

Select Code to Download


  1. or download this
    rename("$oldpath", "$newpath") or die "Error: $!";
    
  2. or download this
    use strict;
    use warnings;
    ...
       rename $oldpath => $newpath or die "Error: $!";
    }
    close $fh;