Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I have a strange problem. I just installed ActivePerl MSI Version. A Script that worked already dies with that message: Can't open file ...: No such file or dir at C:/Perl/site/lib/HTML/Form.pm line 583 (Thats the line where html determines what method get or call has been called). This's strange because my working directory where my files that should be send to internet are stored in a competely different place than Perl itself. So what to do? Reinstall Perl and hope it gets @inc path right? Or what's my problem? Thank you very much...

Replies are listed 'Best First'.
Re: @INC Problem?
by blazar (Canon) on Oct 11, 2005 at 09:58 UTC
    I'm not really sure about what you're asking (incidentally 'Perl' ne 'CGI'), but you can manipulate @INC in your programs; the best way to do so is
    use lib '/path/to/wherever/you/like/';
      sorry sorry... mia culpa... it was just a File::Spec mistake... I just uploaded the filename but not the entire path/filename... sorry for any confusion...