[boulder.pm] ok, I've got a perl question

Luke Palmer fibonaci at babylonia.flatirons.org
Fri Jun 21 02:52:34 CDT 2002


On Thu, 20 Jun 2002, David Nicholas Kayal wrote:

> I have this template I use for making a web page.
> 
> http://yayproductions.com/nice_start_cgi.txt
> 

I'm disappointed in you: you're a Perl programmer! :)  Lines 18-23 are 
*far* too long. That's like... 30 more keystrokes than you need. You could 
replace it with this:

my %input = map { ($_ => param($_)) } param();

You don't need @input because you can just replace it with C<keys %input>.

The rest is okay because HTML and DB stuff is always ugly.

Luke




More information about the Boulder-pm mailing list