in reply to Running Perl Scripts From Another Windows/DOS Directory

If you used ActiveState's distribution of Perl, it associates .pl with perl.exe. You should be able to just type "test.pl" or at the worst, "start test.pl" when in that directory, and it should run.

Once that's true, then the environment variable you want to adjust is the plain executable searching PATH.

However, if you can't get the associations worked out properly, you might want to look at the docs for perlrun and the PERLLIB environment variable. PERLLIB works the most similar to Java's CLASSPATH or Unix's LD_LIBRARY_PATH. It prefixes PERLLIB onto Perl's @INC array. It's probably better to set that as a last resort for modules, not main scripts.

--
[ e d @ h a l l e y . c c ]

  • Comment on Re: Running Perl Scripts From Another Windows/DOS Directory