[7020] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 645 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Jun 23 14:10:36 1997

Date: Mon, 23 Jun 97 11:00:22 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Mon, 23 Jun 1997     Volume: 8 Number: 645

Today's topics:
     Re: s/Hex/Char/ ? s/Char/Hex/ (Tim  Smith)
     Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

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

Date: 22 Jun 1997 19:51:34 -0700
From: trs@azstarnet.com (Tim  Smith)
Subject: Re: s/Hex/Char/ ? s/Char/Hex/
Message-Id: <5okobm$2fp@web.azstarnet.com>

[ CC to poster ]

In article <33ADE5AF.CAA@woais.com>, Wesley Miaw  <wesley@woais.com> wrote:
>I'm having some trouble with my perl CGI. After receiving the input via
>either GET or POST, I'm splitting it into the separate values and
>storing them.

You might want to use the CGI module, which handles all of this for
you painlessly.  It stores the values for you, and to get the value
you just call a routine:

$query = new CGI;		# does all the splitting and storing
$query->param('field1')	# e.g., <INPUT name="field1" type=...>

>Now, in the middle of the CGI, I do want to return a form in case fields
>are missing.

You might be looking for the URI::Escape module.  It works very well
for this kind of thing, and then you can just call URI::unescape($string)
to get your original string back.

These modules are available on CPAN.  Look at libwww-perl (LWP) for the
URI module.

Tim



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

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


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

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

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

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 V8 Issue 645
*************************************

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