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

At minimum, your "PATH" environment variable should include "c:\perl\bin". Although you did mention that perl.exe is in your path -- please double check.

If you want to run your "test.pl" script anywhere on your system, ensure that the script's directory also resides within your "PATH" environment variable.

Assuming you're running some variant of NT (e.g, Win2k or WinXP), you can also add ".pl" onto your "PATHEXT" environment variable saving you some precious keystrokes and be able to run your script just like a ".bat", ".cmd", or whatnot.

Unfortunately, this doesn't work with Win9x -- I don't know about WinME, but I would hazzard to guess that it suffers from the same limitation1 -- so your milage may vary.

1 Some may argue that running any operating system from MicroSoft is inherently limited.
  • Comment on Re: Running Perl Scripts From Another Windows/DOS Directory