> Matthew Thompson wrote:
>
> > -----Original Message-----
> > From: mesh [mailto:[EMAIL PROTECTED]]
> > Subject: redirecting the require " ";
> > 
> > I am trying to require a file.  Whenever perl tries to grab the .lib
> > file it only looks in the /lib directory on the server.  Is there
> > anyway I can redirect perl to look in the folder where the cgi is at??
> > 
> > The script:
> > require "subparseform.lib";
> > &Parse_Form;
> 
> I think this should do the job (put this at the top with other use
> declarations):
> 
> use lib qw (path\to\you\libraries);
> 
> require "subparseform.lib";
> &Parse_Form;

Why qw() when you only have one element?  Why not just:

  use lib 'path\to\libraries';

or even (and don't forget this):

  require 'path\to\libraries\subparseform.lib';

HTH
-- 
-Tim Hammerquist <[EMAIL PROTECTED]>
American society is a sort of flat, fresh-water pond which absorbs
silently, without reaction, anything which is thrown into it.
        -- Henry Brooks Adams
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to