in reply to Perl Shebang Issues?

So what happens if you type "./test.pl" instead of "perl test.pl"? Do you get an error message?

Replies are listed 'Best First'.
Re: Re: Perl Shebang Issues?
by Anonymous Monk on Apr 21, 2004 at 01:53 UTC
    it works

    why?

    and what can I do to fix my shebang?

      It's just your PATH variable. The shell will not search in the current directory for executables unless "." is in the PATH. If you do add . to your PATH, make sure it's at the end. I.e. PATH="$PATH:.", otherwise there are security issues. (It's better not to even do that, especially if you're running as root.)