Re: best scenarios of using Perl
- From: Juha Laiho <Juha.Laiho@xxxxxx>
- Date: Sun, 13 Nov 2005 11:13:41 +0000 (UTC)
"Joe" <strutsng@xxxxxxxxx> said:
>I want to ask what are the practical applications to use Perl? Perl CGI
>scripts? But it can be done with ASP, JSP, and CGI is proven to be
>slow. What are the best scenarios Perl should be the best choice?
Some words were already written about using something else than CGI
interface, and still writing in perl.
Another issue is that not al the workd is web -- there are good non-web
uses as well. Perl seems to excel in areas of transforming and summarising
data (well, "Practical Extraction and Reporting Language" should give
a clue..).
Back to the world of web; if you happen to run Apache as your web server,
it is possible to extend (or modify) the functionality of the web server
itself with perl.
For example, consider the following situation:
There's a system running Apache in reverse-proxy configuration (frontend
for other web servers, among others, handling the SSL crypto stuff and
just running a plain http with the backend servers). One day, someone
comes by and tells that it is decided that for one of the backend systems
it has been decided to use SSL client certificates for user authentication
(and that the user identity must be known to the backend). But hey, all
SSL work is done at the frontend, the backend doesn't even have SSL
capablity. What was done at this point was a small perl extension on the
frontend to extract the SSL client certificate information from the
inbound request, and forward the information as auxiliary HTTP request
headers to the backend server. Perhaps 20 lines of code in total in the
proxy, and a very simple solution for the backend server.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
.
- References:
- best scenarios of using Perl
- From: Joe
- best scenarios of using Perl
- Prev by Date: Re: LWP / HTTP - buggy or broken?
- Next by Date: Net::FTP - Binary mode
- Previous by thread: Re: best scenarios of using Perl
- Next by thread: Re: best scenarios of using Perl
- Index(es):
Relevant Pages
|