Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks - I am trying to copy files "data.txt" and "datascript.pl" present in directory "C:\files" to a folder "scripts" in the current working directory.Can anyone pls advise how can I do that?
#!/usr/bin/perl -w use strict; use warnings; DIR=C:\files C:\files\data.txt C:\files\scripts\datascript.pl opendir(DIR, "$dir") || die "Error in opening dir $dir $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Copying files from a directory to cwd
by wind (Priest) on Apr 21, 2011 at 04:16 UTC | |
by Anonymous Monk on Apr 21, 2011 at 04:21 UTC | |
by wind (Priest) on Apr 21, 2011 at 04:38 UTC | |
by Anonymous Monk on Apr 21, 2011 at 05:40 UTC | |
by wind (Priest) on Apr 21, 2011 at 09:02 UTC | |
by Anonymous Monk on Apr 21, 2011 at 06:50 UTC | |
by Anonymous Monk on Apr 21, 2011 at 07:42 UTC | |
by Anonymous Monk on Apr 21, 2011 at 08:40 UTC |