> 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
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
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;
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
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
; 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
>
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
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
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
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
> 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.
>
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
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
> 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
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
15 matches
Mail list logo