Re: Interpolation Problem with Matching

2005-03-08 Thread John W. Krahn
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

RE: Interpolation Problem with Matching

2005-03-08 Thread Wagner, David --- Senior Programmer Analyst --- WGO
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/) { > >

Interpolation Problem with Matching

2005-03-08 Thread RICHARDS, JIM
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() {