http://qs321.pair.com?node_id=89045

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

Can't locate usr_pin.conf.pl in @INC (@INC contains: C:\infranet\lib c:\infranet\lib c:\infranet\lib\site c:\infranet\lib\site .) at C:\Inetpub\cgi-bin\csc\usr_welcome.pl line 6. usr_pin.conf is the configuration file add by means of require 'usr_pin_conf.pl';

Replies are listed 'Best First'.
Re: perl5 on iis5
by nysus (Vicar) on Jun 16, 2001 at 17:56 UTC
    Hey, bro, it's not real good practice here to double post. Try rewriting your question in real english instead of copying and pasting your STDOUT and you'll probably get a much better response.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot";
    $nysus = $PM . $MCF;

Re: perl5 on iis5
by srawls (Friar) on Jun 16, 2001 at 18:37 UTC
    Perl can't find your file, you have to tell perl where it is:
    BEGIN { push @INC, 'path\\to\\usr_pin.conf.pl'; }
    Please note: I noticed you are on windows, those double slashes are needed because otherwise you'll escape the letter following the slash.

    Update:Oh, and listen to Nysus, he's right on the mark.

    The 15 year old, freshman programmer,
    Stephen Rawls