in reply to Re: using filehandle to open files listed in array
in thread using filehandle to open files listed in array

Im hopelessly confused. I thought that using find( { wanted => \&wanted, no_chdir => 1 }, $Start_dir );

would mean that I don't change directories inside wanted so I could use $File::Find::name.

I dont want to waste anyones time so I'm going to reread the post again and again until I get it..

Replies are listed 'Best First'.
Re^3: using filehandle to open files listed in array
by jwkrahn (Abbot) on May 14, 2006 at 20:41 UTC
    The problem is that when you try to open the files you are not in $Start_dir so you have to prepend that to the file name like:
    open FILEOPENED, "$Start_dir/$a" or die "couldn't open the file $!"