Doug,

Is "/includes" in the root of the drive?  If not, you'll probably need to
use the full path in your require statement (i.e.  Require
'<drive>:/path/28ESP.pl').

As for what you typed here, the proper way to do it (based on what you
wrote) would be:

Use lib 'c:/path/to/parent/of/includes';  #This line should include the
'includes' folder and the full path to it

Require '28ESP.pl';  # Just the file to require.  The above statement should
set the path for you.

Chad Uretsky
Lead Network and Security Engineer, IT | NetIQ Corporation



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Doug
Loud
Sent: Thursday, July 07, 2005 3:57 PM
To: 'Charles K. Clarkson'
Cc: Perl-Win32-Users@listserv.ActiveState.com
Subject: Using canned subroutines with includes


Afternoon, Charles -

I tried your suggestion of:

use lib 'c:/path/to/parent/of/includes';

require "/includes/28ESP.pl";

And got the usual:

Can't locate /includes/28ESP.pl in @INC.... response.

Thanks for trying...
        
 

Douglass N. Loud 
President
Integrated Information Systems, Inc.
292 Fifth Avenue
New York, NY 10001
212-714-3522 (office)
203-952-7108 (cell)
[EMAIL PROTECTED]  

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Charles K. Clarkson
Sent: Wednesday, July 06, 2005 3:27 PM
To: Perl-Win32-Users@listserv.ActiveState.com
Subject: RE: Using canned subroutines with includes

Doug Loud <> wrote:
: 
: In the windows world, however, when I try the same thing, I get an
: error telling me that  the system "Can't locate /Includes/XYZ.pl in
: @INC ".

    Sounds like you need to place the parent directory of /Includes in @INC.

use lib 'c:/path/to/parent/of/Inculdes';

require "/Includes/XYZ.pl";


HTH,

Charles K. Clarkson
--
Mobile Homes Specialist
254 968-8328

_______________________________________________
Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to