Re: redirecting the require " ";

2001-04-11 Thread Tim Hammerquist
> Matthew Thompson wrote: > > > -Original Message- > > From: mesh [mailto:[EMAIL PROTECTED]] > > Subject: redirecting the require " "; > > > > I am trying to require a file. Whenever perl tries to grab the .lib > > file it only

RE: redirecting the require " ";

2001-04-11 Thread Matthew Thompson
I think this should do the job (put this at the top with other use declarations):   use lib qw (path\to\you\libraries);   require "subparseform.lib"; &Parse_Form;   hope this helps, matt   -Original Message-From: mesh [mailto:[EMAIL PROTECTED]]Sent: Wednesday, April

redirecting the require " ";

2001-04-11 Thread mesh
I am trying to require a file.  Whenever perl tries to grab the .lib file it only looks in the /lib directory on the server.  Is there anyway I can redirect perl to look in the folder where the cgi is at??   The script: require "subparseform.lib"; &Parse_Form;

RE: Using "my" with "require" files (Peter Vogel)

2001-02-03 Thread Udo Marx
Hi mailing list! I'm used to declare variables in the executed script and use them in the functions in the library file. I do not see, why I am not to use: use vars($bar,$bla,$foo) System is: win32/Perl 5.6 Overwhelming use of use, isn't it? =:) -- Best regards, _/_/ Netzteil - Udo Marx

RE: Using "my" with "require" files

2001-02-02 Thread Peter Vogel
ackage that the require'd file declares. If you want to get fancy, declare them in the package file, have the package "use Exporter" and define which variables should always export into the client's namespace (i.e. the namespace of the package doing the "use" or &qu

RE: Using "my" with "require" files

2001-02-02 Thread Peter Vogel
; From: Roland Corbet [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 31, 2001 8:27 AM > To: [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Subject: Using "my" with "require" files > > > Many of my scripts depend upon requiring a config file which >

RE: Using "my" with "require" files

2001-02-01 Thread Roland Corbet
At 16:51 31/01/2001, Peter Vogel wrote: >my is what it implies - it declares a variable local to that scope. > >What you want is "our" which works the same as "my" but declares >the variable to be in global scope, it replaces the Perl 5.5 method >of "use vars qw()" > >-Peter After using "our" on

Re: Using "my" with "require" files

2001-02-01 Thread Ron Grabowski
ed > with "my" in the required file is not available in the script that calls > the require file. Damian Conway's Object Orient Perl has a few good pages on lexical vs. package variables. - Ron ___ Perl-Win32-Web mailing list [EMAIL

RE: Using "my" with "require" files

2001-01-31 Thread Roland Corbet
At 16:51 31/01/2001, Peter Vogel wrote: >my is what it implies - it declares a variable local to that scope. > >What you want is "our" which works the same as "my" but declares >the variable to be in global scope, it replaces the Perl 5.5 method >of "use vars qw()" > >-Peter Great! That works fi

Using "my" with "require" files

2001-01-31 Thread Roland Corbet
Many of my scripts depend upon requiring a config file which stores common subroutines and global variables, applicable to more than one script. I add this to my script that is currently running using the: require 'foo.plx' ; line. Wishing to better my programming, I want to u

Re: require

2001-01-16 Thread Ron Grabowski
> For instance, if I put "require" statements in the beginning of the .pl > file, are these brought in by perl.exe when the file is first executed? 'use' statements are evaluated at compile time while 'require' statements are evaulated at run-time. >

require

2001-01-16 Thread Steve Sotis
Some of my perl programs are getting way too big. Where can I find docs on how memory is handled when perl.exe loads a .pl file? For instance, if I put "require" statements in the beginning of the .pl file, are these brought in by perl.exe when the file is first executed? Can I red

RE: Require Does Not Work in ActivePerl623

2001-01-02 Thread Larry E Stewart
What's the trick to using "require" in ActivePerl version 623 versus version 522? This works with 522 but not 623: require ("scriptGeneral.plx"); When executed from DOS I get a perl.exe error in a Program Error warning box saying "perl.exe has generated errors

Re: Require Does Not Work in ActivePerl623

2001-01-02 Thread Ron Grabowski
> if executed from the command line I get a perl.exe error). Before I Maybe if you posted the error code along with the few lines that caused the error we could be of more assistance. - Ron ___ Perl-Win32-Web mailing list [EMAIL PROTECTED] http://l

Require Does Not Work in ActivePerl623

2001-01-02 Thread Larry E Stewart
What's the trick to using "require" in ActivePerl version 623 versus version 522? This works with 522 but not 623: require ("scriptGeneral.plx"); I bought the ActivePerl CD from AS (please don't ask me why) and found that after I loaded the AS version 623 my requ