: : I want to know if Perl can be used to develop a script
: : that will create queries for a database system. The query
: : will determined by user input on a online website
: : written in HTML and Javascript. The objective is that
: : the Javascript will que the Perl script to create
: : the query for the database, which will be excuted to fetch
: : the information which will be sent back to the website to
: : be interpreted back into information for the user to see. The
: : Perl Script and the Database will operate on a Linux based
: : network, but the website queing the database will operate on a
: : remote server on a Unix based system. I have never heard of
: : Perl being used for automating database queries since I've been
: : studying the langauge.
: :
: : Three questions come to mind:
: : 1.Can Perl do what I have described above?
: I would imagine so, yes. I use Perl to do database queries (and construct them), fetch the results and so on, in web development stuff. For database things, you need to be looking at the DBI module. There is a good page about it on the CodePedia here:-
:
http://www.codepedia.com/1/PerlDBITutorial
:
: : 2.Is there a database system that will understand queries
: : written as scripts by Perl to let me do this?
: I use MySQL with Perl and it works just great.
:
http://www.mysql.com/
:
: : 3.Is there a better way? I am still understanding the
: : uses of Perl.
: Perl works on the server side, and it needs to run on the server hosting the web site. You can connect to a database on a remote server (well, you can with MySQL anyway). So the Perl scripts need to be on the box hosting the web site, and connect to the database on the db server.
:
: Hope this helps,
:
: Jonathan
:
: ###
: for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
: (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
: /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
:
Do you use alot of work arounds when you're using the tainted data mode for the CGI scripting?