On Tue, Apr 21, 2009 at 12:37, Raheel Hassan <raheel.has...@gmail.com> wrote: > Thanks a lot for your explanation. For adding support of CGI, SSL and MySQL > in perl, what modules do i need to install. Please write down the commands > for installing and uninstalling and also for checking that what modules are > installed by default in perl as i have read the apache doccumentation where > it is not mentioned clearly. snip
CGI[1] is part of Core Perl, so you already have it. SSL should be handled for you by Apache, but in case you need to make your own SSL connections you can use IO::Socket::SSL[2]. For MySQL you will need DBI[3] and DBD::mysql[4]. In general, if you need some code to do something you should look on CPAN[5]. You can test whether a module is installed or not by saying perl -MModule::Name -le 'print "ok"' If you get "ok" back then it is installed, if you get back an error then either it is not installed or you need to set PERL5LIB to point to where it is installed. There are multiple methods of installing modules. In order of my preference: * use a package manager: apt-get install libdbi-perl * use cpan cpan DBI * compile from a tarball 1. download a tarball from CPAN 2. decompress tarball 3. change directory into the extracted tarball 4. perl Makefile.PL 5. make 6. make test if all of the steps above succeed without errors 7. make install 1. http://perldoc.perl.org/CGI.html 2. http://search.cpan.org/dist/IO-Socket-SSL/SSL.pm 3. http://search.cpan.org/dist/DBI/DBI.pm 4. http://search.cpan.org/dist/DBD-mysql/lib/DBD/mysql.pm 5. http://search.cpan.org -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/