On Sat, 22 May 2004, Kim Helliwell wrote:

> This might be simply that your search path is not set correctly.

"Correct" here may be a matter of opinion -- it's not by accident that
"." is not part of the path by default, as that's a security hazard.

The way around this is to make the path explicit on a case by case basis
by prefixing "./" to commands you want to run in the current directory:

    % cat test.pl
    #!/usr/bin/perl -w

    print "Hello World!\n";

    % test.pl
    Hello World!
    % perl test.pl
    Hello World!
    %

It's probably best not to put "." in the $PATH anymore.


-- 
Chris Devers

Reply via email to