Bill, You took the words out of my mouth...and my next question was for the full path to the required file.
Thanks. Chad -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of $Bill Luebkert Sent: Thursday, July 07, 2005 7: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