On 8/23/06, zhihua li <[EMAIL PROTECTED]> wrote:
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?
You may learn a lot about invoking the perl interpreter with
perldoc perlrun
or
http://perldoc.perl.org/perlrun.html
You will probably like the -S switch (for finding your script files
via path) and PERL5LIB.
Regards,
Adriano Ferreira
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>