Re: best scenarios of using Perl



"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)
.



Relevant Pages

  • Re: Object Rexx to become Open Source
    ... the Perl home page, ... Object Rexx can be used either way - if you want to ... I currently use JScript for WSH, WMI, HTA and web server scripting, plus ... I didn't mean to imply it wasn't cross-platform, ...
    (microsoft.public.scripting.wsh)
  • Buffer Overflow in Netware Web Server PERL Handler
    ... Buffer Overflow in Netware Web Server PERL Handler ... Application: NetWare Enterprise Web Server ...
    (Bugtraq)
  • [VulnWatch] Buffer Overflow in Netware Web Server PERL Handler
    ... Buffer Overflow in Netware Web Server PERL Handler ... Application: NetWare Enterprise Web Server ...
    (VulnWatch)
  • RE: perl and java and html
    ... know it can be done with a local web server. ... Maybe Perl is not the way to go then? ... It sounds like you want to run a perl script on your client that will ... Access to this email by anyone else, unless expressly approved by the sender or an authorized addressee, is unauthorized. ...
    (perl.beginners)
  • Re: Question about Javascript and Perl form
    ... Your question is related to CGI and web server configuration and not to ... Perl specifically. ... Javascript and Perl together thing is making it ...
    (comp.lang.perl.misc)