Re: How to share subroutine
:Hi! On Wed, Jul 16, 2003 at 10:46:27PM +0100, Ged Haywood wrote: > Hi there, > > On Wed, 16 Jul 2003, Matthew Wu wrote: > > >I put all my subroutine in file.pm, what I need to do such that it > > can be used by my program? I don't what location I need to put it in and > > what kind of configuration I need to modify. I am running Redhat 6.3. > > At the risk of repetition... :) Ha! :-) > This is a mailing List specifically for mod_perl issues. > Are you using mod_perl? If you're using mod_perl, you might find this helpful: http://perl.apache.org/docs/general/perl_reference/perl_reference.html#userequiredo_INC_and__INC_Explained and http://perl.apache.org/docs/1.0/guide/config.html#The_Startup_File especially: use lib qw(/path/to/module); But, as Ged allready mentioned, please RTFM! The mod_perl docs are really great, so please DO read them. http://perl.apache.org -- #!/usr/bin/perl http://domm.zsi.at for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
Re: How to share subroutine
Hi there, On Wed, 16 Jul 2003, Matthew Wu wrote: >I put all my subroutine in file.pm, what I need to do such that it > can be used by my program? I don't what location I need to put it in and > what kind of configuration I need to modify. I am running Redhat 6.3. At the risk of repetition... :) This is a mailing List specifically for mod_perl issues. Are you using mod_perl? For general Perl questions, if you are using RH6.2 you can start by reading some of the enormous quantities of Perl documentation that should already be on your computer. There are also a few good books, I guess your library should be able to get them for you but you really need to buy a few of them if you are going to work with mod_perl. You will see some suggestions on the mod_perl Web site, perl.apache.org. Please don't ask general Perl questions here. On Linux, start with perldoc perldoc and perldoc perlfaq and for your particular question perldoc -f use but you really need to do that reading. 73, Ged.
How to share subroutine
Hi: I put all my subroutine in file.pm, what I need to do such that it can be used by my program? I don't what location I need to put it in and what kind of configuration I need to modify. I am running Redhat 6.3. Thanks. Matthew Wu School Loans Corp. 10780 Santa Monica Blvd, Ste 225 Los Angeles, ca 90025 Tel. 310-474-7456 ext.235 Email [EMAIL PROTECTED]