RICHARDS, JIM wrote:
I am trying to compare files names listed in a file to the actual files
in a directory. My code is as follows:
Your "code" won't compile. Please add the following two lines:
use warnings;
use strict;
to the top of your program and let perl help you find the mistakes.
The best
RICHARDS, JIM wrote:
> I am trying to compare files names listed in a file to the actual
> files in a directory. My code is as follows:
>
>
>
> Opendir(DIR,"name");
>
> @files=readdir(DIR);
>
>
>
> Open(IN,"
>
>
> While() {
>
> If(/^pattern/) {
>
>
I am trying to compare files names listed in a file to the actual files
in a directory. My code is as follows:
Opendir(DIR,"name");
@files=readdir(DIR);
Open(IN,") {
If(/^pattern/) {
moveFile($_);
}
}
Close(IN);
Sub moveFile() {