Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

modifying scripts for mod_perl?
I get variable error when I try to use procedure in a module to connect to
db.
=== common.pm
sub connect
{
return DBI->connect( "DBI:mysql:blogbase:localhost", "something",
"something" ) or croak "MySQL seems to be down.";
}
== index.pl
use common;
#...
$db = Common::connect() or croak "woops";

If I access it on my testbox running apache without mod_perl, it works.
If I type perl index.pl in console on the working server, it works.
When I try to access it on the server, with apache with mod_perl, it croaks.

What's the problem? How do I fix it? I seem to be pretty much out of any
clue...

I was also wondering if there's something like "HOWTO migrate to mod_perl"
guide somewhere.



Report this thread to moderator Post Follow-up to this message
Old Post
Sergei Shelukhin
09-29-04 02:27 AM


Re: modifying scripts for mod_perl?
Sergei Shelukhin wrote:
> I was also wondering if there's something like "HOWTO migrate to
> mod_perl" guide somewhere.

There is: http://perl.apache.org/docs/1.0/guide/porting.html

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Report this thread to moderator Post Follow-up to this message
Old Post
Gunnar Hjalmarsson
09-29-04 02:27 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Miscellaneous archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:38 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.