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....
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
$Bill Luebkert
Sent: Thursday, July 07, 2005 4:28 AM
To: [email protected]
Subject: Re: Using canned subroutines with includes
Ñåðãåé ×åðíèåíêî wrote:
> Hello, Doug,
>
> Wednesday, July 06, 2005, 7:39:57 PM, You wrote:
>
>
> DL> Thanks. I tried using
>
> DL> require "\\includes\\28ESP.pl";
>
> DL> But got an error message of:
>
> DL> Can't locate \includes\28ESP.pl in @INC (@INC contains:
> DL> C:/Perl/lib C:/Perl/site/lib .)
>
> DL> The includes directory is in the same path as the code, along with the
> DL> images directory that contains gifs and jpegs for the site.
>
> Try this:
>
> my $mylib = "includes\\28ESP.pl";
> eval "require $mylib";
This work's fine (if on smae drive) :
my $mylib = '/includes/28ESP.pl';
require $mylib;
Make sure the required script returns a true (eg: 1;).
Add the <drive>: if not on the same drive.
> And notice that in windows it's wrong when first symbol of path is
> path delimiter. There must be or driveletter or dot or name of
> file (or folder). E.g.
>
> "includes\\28ESP.pl" is good path the folder includes are in the
> same folder as requiring script
> ".\\includes\\28ESP.pl" also is good path and is the same as first
> "\\includes\\28ESP.pl" wrong path
--
,-/- __ _ _ $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
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs