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 $!";
In reply to Copying files from a directory to cwd by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |