How can I use a database server from a Perl CGI script?

后端 未结 2 1067
情话喂你
情话喂你 2021-01-28 06:12

My program works already, I have Perl (GUI Window) where I can input data, data passed to the webpage (using to Tomcat server, JSP) and then saved it to oracle

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-28 06:39

    Any specific reason for the mix in technologies? Why not use a servlet/JSP?

    If you must use Perl, then you need to choose what web-server will run your Perl script.

    Normally, this would be Apache using mod_perl.

    But if you only intend to use this for a few admin scripts, then you can run Perl from tomcat as outlined here.

    Once you have managed to get a simple perl script running, then I would look into using DBI/DBD::Oracle to access your database?

    Hope this helps...

提交回复
热议问题