Perl Newby has asked for the wisdom of the Perl Monks concerning the following question:
my $base_dir = "C:/Text_Files"; my $new_dir = "D:/Test"; opendir (DIR, "C:/Text_Files") || die "Could not open data directory\n +"; my ($top_file) = reverse sort readdir(DIR); closedir (DIR); use File::Copy; move($base_dir.$top_file, $new_dir.$top_file);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Moving a Text File
by azatoth (Curate) on May 16, 2001 at 19:42 UTC | |
by tye (Sage) on May 17, 2001 at 18:46 UTC | |
|
(tye)Re: Moving a Text File
by tye (Sage) on May 16, 2001 at 21:24 UTC |