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 for it to work without
the drive letter.  You could also try using 'do' instead of 'require';

Try taking the same path and doing an open on it to make sure it's legit.

open IN, "/Includes/XYZ.pl" or die "open: $!";
print <IN>;
close IN;

> where XYZ.pl contained several subroutines to be used in the web page as
> needed.
>  
> 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 ".
>  
> Currently, the XYZ.pl file does live in the Includes directory, and looks
> like this (for now):

You need to add a 1; to the end of your required file.

-- 
  ,-/-  __      _  _         $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

Reply via email to