in reply to Re: Unique Variable names...
in thread Unique Variable names...

The reason I used the Cwd module is because I needed to change the current directory in order for the program to function. Hence, when I use your program, I have the same issue: it will be unable to open the files until the working directory is changed within the program.
Bioinformatics

Replies are listed 'Best First'.
Re: Re: Re: Unique Variable names...
by Limbic~Region (Chancellor) on Jul 30, 2003 at 15:59 UTC
    bioinformatics,
    Why do you need to use Cwd when chdir will work just fine?

    Why do you put the chdir inside the foreach loop? Would not changing the directory at the top of the foreach loop once be sufficient.

    As a final note - dragonchild's code provides the directory and file name in the file list, so the chdir really is not required.

    Cheers - L~R