RE: Using canned subroutines with includes - an answer of sorts

2005-07-09 Thread Doug Loud
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of $Bill Luebkert Sent: Friday, July 08, 2005 5:49 PM To: Perl-Win32-Users@listserv.ActiveState.com Subject: Re: Using canned subroutines with includes - an answer of sorts Joe Discenza wrote: > Doug Loud wrote, on Fri 7/8/2005 12

Re: Using canned subroutines with includes - an answer of sorts

2005-07-08 Thread $Bill Luebkert
Joe Discenza wrote: > Doug Loud wrote, on Fri 7/8/2005 12:17 > ** > > *: *in Windows XP Pro, SP2, I have to use: > : > : require 'includes/28ESP.pl'; > : > : But in the *NIX days, I used: > : > : require "../includes/28ESP.pl"; > > Are you sure that isn't > > require "./includes/28ESP.pl"; >

RE: Using canned subroutines with includes - an answer of sorts

2005-07-08 Thread Doug Loud
Subject: Re: Using canned subroutines with includes - an answer of sorts On approximately 7/8/2005 7:24 AM, came the following characters from the keyboard of $Bill Luebkert: > Doug Loud wrote: >> >>Path to the includes script and required file: >>C:\My Documents\IISMK\Bluepo

RE: Using canned subroutines with includes - an answer of sorts

2005-07-08 Thread Joe Discenza
Title: RE: Using canned subroutines with includes - an answer of sorts Doug Loud wrote, on Fri 7/8/2005 12:17 : in Windows XP Pro, SP2, I have to use::: require 'includes/28ESP.pl';:: But in the *NIX days, I used::: require "../includes/28ESP.pl"; Are you sure

RE: Using canned subroutines with includes - an answer of sorts

2005-07-08 Thread Doug Loud
: Friday, July 08, 2005 10:50 AM To: '[EMAIL PROTECTED]'; 'Perl-Win32-Users@listserv.ActiveState.com' Subject: RE: Using canned subroutines with includes - an answer of sorts That explains why it works when you just use: Require 'includes/28ESP.pl' That path is relati

RE: Using canned subroutines with includes - an answer of sorts

2005-07-08 Thread Chad I. Uretsky
erl-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 a

Re: Using canned subroutines with includes - an answer of sorts

2005-07-08 Thread $Bill Luebkert
Doug Loud wrote: > > 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 Well damn that explai

RE: Using canned subroutines with includes - an answer of sorts

2005-07-08 Thread Chad I. Uretsky
: 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 th

RE: Using canned subroutines with includes

2005-07-08 Thread Chad I. Uretsky
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: Usin

Re: Using canned subroutines with includes - an answer of sorts

2005-07-08 Thread $Bill Luebkert
Ñåðãåé ×åðíèåíêî wrote: > Well, really the only point of confusion is relativ position of some > script named, say, caller.pl which require some other script, > traditionally named 28esp.pl :-). In my answers I supposed that > caller.pl placed in some_arbitrary_folder and in the same folde

Re: Using canned subroutines with includes

2005-07-07 Thread $Bill Luebkert
$Bill Luebkert wrote: > Sisyphus wrote: > > >>- Original Message - >>From: "$Bill Luebkert" <[EMAIL PROTECTED]> >> >>>My sentiments exactly - it's time we find out the full paths to these >> >>files >> >> >>>and get it straight. Personally, I prefer to never use \'s unless >> >>absolut

Re: Using canned subroutines with includes

2005-07-07 Thread $Bill Luebkert
Sisyphus wrote: > - Original Message - > From: "$Bill Luebkert" <[EMAIL PROTECTED]> > >>My sentiments exactly - it's time we find out the full paths to these > > files > >>and get it straight. Personally, I prefer to never use \'s unless > > absolutely > >>necessary and then I conve

Re: Using canned subroutines with includes

2005-07-07 Thread Sisyphus
- Original Message - From: "$Bill Luebkert" <[EMAIL PROTECTED]> > > My sentiments exactly - it's time we find out the full paths to these files > and get it straight. Personally, I prefer to never use \'s unless absolutely > necessary and then I convert them at the last possible moment.

Re: Using canned subroutines with includes - an answer of sorts

2005-07-07 Thread Sisyphus
- Original Message - From: "$Bill Luebkert" <[EMAIL PROTECTED]> > > Doug, you're screwing our minds over. If the above works, then you must > be in the directory above the required script. Yep - finally dawned on me, too - and I was pretty pissed off about it. > > Answer these two que

Re: Using canned subroutines with includes - an answer of sorts

2005-07-07 Thread $Bill Luebkert
$Bill Luebkert wrote: > 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 wil

Re: Using canned subroutines with includes

2005-07-07 Thread $Bill Luebkert
Sisyphus wrote: > - Original Message - > From: "Ñåðãåé ×åðíèåíêî" <[EMAIL PROTECTED]> > >>S> First up, which drive contains \includes\28ESP.pl ? >> >> it is d:\perl_projects\ The file 28esp.pl contains only string "1;" > > > Ok - so is 28ESP.pl in D:\includes\ or is it in D:\perl_pro

Re: Using canned subroutines with includes - an answer of sorts

2005-07-07 Thread $Bill Luebkert
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 $myli

RE: Using canned subroutines with includes

2005-07-07 Thread Doug Loud
952-7108 (cell) [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charles K. Clarkson Sent: Thursday, July 07, 2005 5:16 PM To: Perl-Win32-Users@listserv.ActiveState.com Subject: RE: Using canned subroutines with includes Doug Loud <m

RE: Using canned subroutines with includes

2005-07-07 Thread Charles K. Clarkson
Doug Loud wrote: : Afternoon, Charles - Hi. : I tried your suggestion of: : : use lib 'c:/path/to/parent/of/includes'; : : require "/includes/28ESP.pl"; Try this. If it works, you can try shortening the first path. On my XP system '.' works there. use lib

RE: Using canned subroutines with includes

2005-07-07 Thread Doug Loud
ifth 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: Perl-Win32-Users@listserv.ActiveState.com Subject: R

RE: Using canned subroutines with includes

2005-07-07 Thread Doug Loud
ROTECTED] Cc: Perl-Win32-Users@listserv.ActiveState.com Subject: Re: Using canned subroutines with includes Doug Loud wrote: > > > Morning - > > For many years, in the unix/perl world I could set up a perl/cgi web > page to use a bunch of subroutines that were available to my perl &g

Re: Using canned subroutines with includes

2005-07-07 Thread $Bill Luebkert
Ñåðãåé ×åðíèåíêî wrote: > Çäðàâñòâóéòå Sisyphus, > > Thursday, July 07, 2005, 3:58:43 PM, Âû íàïèñàëè: > > > S> - Original Message - > S> From: "Ñåðãåé ×åðíèåíêî" <[EMAIL PROTECTED]> > >>> But path separator (slash or backclash) as first symbol >>>of path in require produces an error

Re: Using canned subroutines with includes

2005-07-07 Thread $Bill Luebkert
Ñåðãåé ×åðíèåíêî wrote: > Çäðàâñòâóéòå $Bill, > > BL> This work's fine (if on smae drive) : > > BL> my $mylib = '/includes/28ESP.pl'; > BL> require $mylib; > > Yes, $Bill, eval is not needed. But path separator (slash or backclash) as > first symbol > of path in require produces an error on win

Re: Using canned subroutines with includes

2005-07-07 Thread $Bill Luebkert
Ñåðãåé ×åðíèåíêî 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: C:/Perl/lib > DL> C:/Pe

Re: Using canned subroutines with includes

2005-07-06 Thread Sisyphus
- Original Message - From: "Charles K. Clarkson" <[EMAIL PROTECTED]> To: Sent: Thursday, July 07, 2005 5:26 AM Subject: RE: Using canned subroutines with includes > Doug Loud <> wrote: > : > : In the windows world, however, when I try the same thing, I g

Re: Using canned subroutines with includes

2005-07-06 Thread Sisyphus
- Original Message - From: "Doug Loud" <[EMAIL PROTECTED]> To: "'Chad I. Uretsky'" <[EMAIL PROTECTED]>; Sent: Thursday, July 07, 2005 2:39 AM Subject: RE: Using canned subroutines with includes > > Thanks. I tried using > > requir

Re: Using canned subroutines with includes

2005-07-06 Thread $Bill Luebkert
Doug Loud wrote: > > > Morning - > > For many years, in the unix/perl world I could set up a perl/cgi web page to > use a bunch of subroutines that were available to my perl based web pages > with this command: > > require "/Includes/XYZ.pl"; Works for me. You have to be on the same drive

RE: Using canned subroutines with includes

2005-07-06 Thread Charles K. Clarkson
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'; requir

RE: Using canned subroutines with includes

2005-07-06 Thread Doug Loud
I. Uretsky Sent: Wednesday, July 06, 2005 10:39 AM To: '[EMAIL PROTECTED]'; 'Perl-Win32-Users@listserv.ActiveState.com' Subject: RE: Using canned subroutines with includes Try using the following (I haven't tested this), since things seem a little different on Window

RE: Using canned subroutines with includes

2005-07-06 Thread Chad I. Uretsky
27;[EMAIL PROTECTED]'; > 'Perl-Win32-Users@listserv.ActiveState.com' > Subject: RE: Using canned subroutines with includes > > > Try using the following (I haven't tested this), since things > seem a little > different on Windows: > > Require &qu

RE: Using canned subroutines with includes

2005-07-06 Thread Jones Robert TTMS Contractor
Where's your drive letter? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Chad I. Uretsky > Sent: Wednesday, July 06, 2005 9:39 AM > To: '[EMAIL PROTECTED]'; > 'Perl-Win32-Users@listserv.Act

RE: Using canned subroutines with includes

2005-07-06 Thread Chad I. Uretsky
Try using the following (I haven't tested this), since things seem a little different on Windows: Require "\\Includes\\XYZ.pl"; In my experience, I've found Windows prefers the normal backslash to the *NIX-preferred forward slash. If that doesn't work, perhaps try including a lib path and then r