Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: mod_perl: Is it so necessary?

by Anonymous Monk
on Sep 06, 2000 at 00:10 UTC ( [id://31170]=note: print w/replies, xml ) Need Help??


in reply to mod_perl: Is it so necessary?

Don't know about mod_perl, but one reason NOT to use DBI is that it may not exist on your target machine. Some of my scripts broke this morning when I moved them from development to production. It turns out that the production machine did not have DBI installed.

Fortunately the 'Use DBI' statement was not needed, so commenting it out fixed the problem. But I would have been in big trouble if I had actually coded in DBI. Unless one has control over one's target environment or is reasonably certain about what it will be the less fancy modules used the better.

Replies are listed 'Best First'.
RE: Re: mod_perl: Is it so necessary?
by davorg (Chancellor) on Sep 06, 2000 at 12:20 UTC

    I can't agree with that. Modules are there to make your life easier by reusing code as much as possible.

    If you can't get your client/boss/ISP/whatever to install whatever modules you need then you should seriously consider getting a new client/boss/ISP/whatever.

    --
    <http://www.dave.org.uk>

    European Perl Conference - Sept 22/24 2000, ICA, London
    <http://www.yapc.org/Europe/>
RE: Re: mod_perl: Is it so necessary?
by Jonathan (Curate) on Sep 06, 2000 at 14:58 UTC
    That's just a problem with your infrastructure and machine builds nothing to do with the suitability of DBI
RE: Re: mod_perl: Is it so necessary?
by puck (Scribe) on Sep 07, 2000 at 03:22 UTC
    So, if you didn't use DBI how do you intend to communicate with your database? Talk to the DB directly via sockets?!

    I do agree with trying to simplify things if you don't have control over the environment, but your example is buggy. Also, why not install the modules required locally within the area you do have control over?

    Sigh...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://31170]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found