http://qs321.pair.com?node_id=670647


in reply to how to avoid chdir(directories) ?

Can't you simply tell the script where the data file is by opening the file with a full path? Are you expecting some output file to be written to the same directory as the input data? If you need to work with several input files in different directories, you might explore File::Find as a solution.