Home: Perl Programming Help: Intermediate:
.pm file created used in the perl program


Jan 26, 2000, 11:01 PM

Views: 6157
.pm file created used in the perl program

i have created .pm file with database login and logoff from the database in a package.since i don't want to repeat the code which is not relevant i want to use the .pm module in the program.when i use the .pm and implement the perl program i get problems.in the linux server command environment it works.from the browser i try the same program it says the internal server error.when i implement the functions in the .pm module itis working.from the browser,i use the pm module it is not.


Jan 29, 2000, 9:16 AM

Views: 6157
Re: .pm file created used in the perl program

Do you happen to have access to your error logs? It would be really useful in determining the nature of the problem.

If you do, please post the relevant entries in the error-logs.

If it's working at the command prompt and not in the browser, a probably oversimplified suggestion is to make sure that you have the print "Content-Type: text/html\n\n"; before you attempt to display any output to the browser.