Re: CGI.pm

[prev] [thread] [next] [lurker] [Date index for 2006/06/27]

From: A. Pagaltzis
Subject: Re: CGI.pm
Date: 19:47 on 27 Jun 2006
* Aaron Crane <hateful@xxxxxxxxxx.xx.xx> [2006-06-27 14:15]:
> I can't conceive of any situation in which it would be
> desirable behaviour,

It's useful if you want to redisplay an improperly filled out
form to the user. In that case the values you provide would be
merely defaults and CGI.pm would take care of stickiness for you.

I've actually found it useful on about two occasions.

The fact that there's no way to globally turn off this behaviour
is absolutely hateful, however. At first I relied on calling
CGI.pm's routines from my TT2 templates to generate my form
elements, because that's much nicer than typing out the entire
form element HTML every time, particularly for the complex ones
like select boxes.

Well, it *would* be much nicer -- if the stickiness was easy to
turn off. HATE.

It would also help if TT2 was at all useful at manipulating data
structures, because CGI.pm's routines sometimes have somewhat
peculiar preferences. Alas, data structure manipulation in TT2 is
about as powerful as in the Bourne shell. Crippled template mini
languages: a hate for another day.

Aaaaargh.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>;

Generated at 21:00 on 05 Jul 2006 by mariachi 0.52