On 08/23/2006 02:30 PM, zhihua li wrote:
Dear all,

now when I'm writing some perl script that needs to open some files, I alwayse have to put the script in the same directory of these files, or I'll have to give the full path to these files in my script. if I do not do so, perl wouldn't be able to find the files I called up in the script.

is there some way to change some enviromental parameter so that when I call up a file in the script, perl will go to the directories I specified in searching for the file?

thanks a lot!




Change into the directory containing the scripts using the "chdir" function.

perldoc -f chdir



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to