Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    $path_to_file =~ s.\\.\/.g;
    my ($file,$path) = fileparse($path_to_file);
    print "$file is in $path\n";
    
  2. or download this
    use File::Copy;
    copy $file,$newpath or die "Cannot copy $file to $newpath:$!\n";