That explains why it works when you just use:

Require 'includes/28ESP.pl'

That path is relative from the script path.

Otherwise, you could try:

Require '/my documents/iismk/bluepoint/esp/28 esp/28 esp
system/includes/28ESP.pl';

(or start it with 'c:/my documents....' to give it a "more" absolute path).

Chad




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Doug
Loud
Sent: Friday, July 08, 2005 8:44 AM
To: Perl-Win32-Users@listserv.ActiveState.com
Subject: FW: Using canned subroutines with includes - an answer of sorts


 
Morning, Bill - 
 
Path to the includes script and required file:
C:\My Documents\IISMK\Bluepoint\ESP\28 ESP\28 ESP System\includes\28ESP.pl


Path to the script calling the require:        
C:\My Documents\IISMK\Bluepoint\ESP\28 ESP\28 ESP System\MainMenu.cgi 

Thanks!

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: $Bill Luebkert [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 07, 2005 8:32 PM
To: [EMAIL PROTECTED]
Cc: Perl-Win32-Users@listserv.ActiveState.com
Subject: Re: Using canned subroutines with includes - an answer of sorts

Doug Loud wrote:

>  
> Well, here's an answer:
> 
> I started with: require "/Includes/28ESP.pl"; and that didn't work.
> 
> Then I tried all the other combinations you all were kind enough to
suggest.
> Still no luck.
> 
> Finally, I discovered that both of these will work:  Hooray!
> 
> my $mylib = 'includes/28ESP.pl';
> require $mylib;
> 
>     OR
> 
> require 'includes/28ESP.pl';        
> 
> In view of the email conversation this started, it is intriguing to
> note that these statements work with single quotes and no delimiter or 
> . in front of the includes.  On XP Pro, SP2, that is....

Doug, you're screwing our minds over.  If the above works, then you must be
in the directory above the required script.

Answer these two questions:

What is the full path to the script ? :

What is the full path to the script you are trying to require ?  :


-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic
http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)

_______________________________________________
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