[NMLUG] Upcoming Perl CGI Class

Matt Grommes nmlug@swcp.com
Fri, 30 Nov 2001 16:17:43 -0700

Yeah, I have to say I'm in the same boat on some people's wacky code. 
Comments, comments, comments, that's all I can say. :)

If you're doing Perl programs for a webpage, mod_perl is completely the 
way to go. One thing mod_perl does that's bad is that it adds quite a 
bit to the server overhead. If you're not doing something big that would 
be made way faster by going mod_perl, sometimes it's not worth it 
because each apache process then has a perl interpretter embedded in it. 
Doing mod_perl correctly requires a different mindset too (since your 
connections stay around longer, you have to be more careful, especially 
with database connections) so a lot of people don't bother with it.

If you want to prove the coolness of Perl and also mess with someone's 
head, you can use the Perl module Acme::Bleach in your program. It turns 
your program into binary where spaces are 1s and tabs are 0s. Yes, this 
means your program is total whitespace but it still runs. Do that in C. :)

Don Wilde wrote:

> Matt Grommes wrote:
> And that's where Perl drives me nuts. I can't read somebody else's neat
> tricks. :-) More power to you if you make it useful, but I can't follow
> in your footsteps after you've moved on. Very few people write
> algol-style Perl. :-)
>>Also, CGI is not a Perl term. CGI (Common Gateway Interface) is the term
>>for how any program communicates with a webpage. If your program runs on
>>the server and communicates with or creates webpages, you're using CGI.
>>It doesn't matter 1 tiny little bit but I'm a nitpicker, what can I say.
> Well, that's part of what I was asking. If you're going to use Perl, why
> not use mod_perl? Why would you use old-style CGI with the
> separately-loaded interpreter?


			--   Matt Grommes   --
"All these worlds are belong to you, except Europa. Take off no zigs there."

To UNSUBSCRIBE send a message to nmlug-request@swcp.com
with only the word unsubscribe in the body.  More
information can be found at www.nmlug.org/info.html