[32246] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 3513 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Oct 6 21:09:26 2011

Date: Thu, 6 Oct 2011 18:09:07 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Thu, 6 Oct 2011     Volume: 11 Number: 3513

Today's topics:
        oiperation goddess? <r@thevoid1.net>
        thanks <r@thevoid1.net>
    Re: this is why I don't like CGI.pm (Alan Curry)
    Re: this is why I don't like CGI.pm xhoster@gmail.com
    Re: this is why I don't like CGI.pm (Randal L. Schwartz)
    Re: this is why I don't like CGI.pm <justin.1104@purestblue.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Wed, 05 Oct 2011 16:40:16 -0600
From: robin <r@thevoid1.net>
Subject: oiperation goddess?
Message-Id: <j6imci$98r$2@speranza.aioe.org>

?


------------------------------

Date: Wed, 05 Oct 2011 16:39:22 -0600
From: robin <r@thevoid1.net>
Subject: thanks
Message-Id: <j6imas$98r$1@speranza.aioe.org>

you still cand remove governement bad guy stuff and lazyness involving 
people's liberty/being restriction and stuff.

you kinda should

but you don't even freak out even have to

in a way that I can

I did


------------------------------

Date: Wed, 5 Oct 2011 19:19:43 +0000 (UTC)
From: pacman@kosh.dhis.org (Alan Curry)
Subject: Re: this is why I don't like CGI.pm
Message-Id: <j6iakf$bsi$1@speranza.aioe.org>

In article <82eaa1bc-7136-49cd-b2b6-38c75c658e9e@s9g2000yql.googlegroups.com>,
Mr P  <misterperl@gmail.com> wrote:
>I created a checkbox with $cgi->checkbox() . It showed up fine, I can
>label it, etc. But it WILL NOT CHECK on instantiation. I tried -
>checked => 1, -checked => "checked", -selected => "1", -selected => 1,
>-on => 1,  etc etc.
>
>Oddly, if I change the NAME of the box, *sometimes* it checks. If I
>add an X to the front it will check, if I add a 2 to the end, it
>won't. Although this isn't repeatable.

The same thing happened to me. I eventually figured out that if you use the
same object to parse an HTTP request and write an HTML form, it assumes that
fields with the same name in both are supposed to be linked, and copies the
values from the request into the form, ignoring the values you told it to put
there.

I hated this feature too. Too much spooky behind-the-scenes action based on a
completely unwarranted assumption.

-- 
Alan Curry


------------------------------

Date: 05 Oct 2011 21:51:58 GMT
From: xhoster@gmail.com
Subject: Re: this is why I don't like CGI.pm
Message-Id: <20111005175158.508$wZ@newsreader.com>

Mr P <misterperl@gmail.com> wrote:
> I created a checkbox with $cgi->checkbox() . It showed up fine, I can
> label it, etc. But it WILL NOT CHECK on instantiation. I tried -
> checked => 1, -checked => "checked", -selected => "1", -selected => 1,
> -on => 1,  etc etc.

You are probably getting tripped up by "sticky fields".  They make good
sense once you get around to reading that part of the documentation.  It
also tells you how to override them.



> Thanks, CGI.pm like had an extra 4 hours to waste this week!

I too often find that 4 hours of randomly flailing about and swearing will
often save me from 20 minutes of reading the documentation.

Xho

-- 
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.


------------------------------

Date: Wed, 05 Oct 2011 19:16:34 -0700
From: merlyn@stonehenge.com (Randal L. Schwartz)
To: pacman@kosh.dhis.org (Alan Curry)
Subject: Re: this is why I don't like CGI.pm
Message-Id: <86r52qyid9.fsf@red.stonehenge.com>

>>>>> "Alan" == Alan Curry <pacman@kosh.dhis.org> writes:

Alan> The same thing happened to me. I eventually figured out that if
Alan> you use the same object to parse an HTTP request and write an HTML
Alan> form, it assumes that fields with the same name in both are
Alan> supposed to be linked, and copies the values from the request into
Alan> the form, ignoring the values you told it to put there.

This is called "sticky fields".  It's (a) documented, (b) useful *most*
of the time, and (c) possible to disable.

Alan> I hated this feature too. Too much spooky behind-the-scenes action
Alan> based on a completely unwarranted assumption.

No, the assumption makes sense for the early CGI-only web.  And changing
it now would break too many things needlessly.

print "Just another Perl hacker,"; # the original

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion


------------------------------

Date: Thu, 6 Oct 2011 11:03:04 +0100
From: Justin C <justin.1104@purestblue.com>
Subject: Re: this is why I don't like CGI.pm
Message-Id: <ova0m8-cfu.ln1@zem.masonsmusic.co.uk>

On 2011-10-05, xhoster@gmail.com <xhoster@gmail.com> wrote:
>
> I too often find that 4 hours of randomly flailing about and swearing will
> often save me from 20 minutes of reading the documentation.

Xho's law? It catches me too many times, "That didn't work, oh, it must
be .... nope, how about ..." say bye-bye to time.

   Justin.

-- 
Justin C, by the sea.


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests. 

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V11 Issue 3513
***************************************


home help back first fref pref prev next nref lref last post