Thanks to all for the replies.

The purpose of the line was to parse an input from a form. I could
explain my reasons for using that method.. but every time I have tried
to word it clearly... it came out all confusing... suffice it to say
that you were all a big help. I have worked it out.

I changed my method of handling the input. I went with the CGI Module.
Thanks.


David Gerler
Gerler Enterprises
PO Box 16357
Chesapeake VA 23328
http://www.GerlerEnterprises.com/

Full Featured Web Hosting from $5.95 /Mo.
Full cgi-bin access, MySQL, and Unlimited email addresses.
http://www.EasySitesForLess.com/

Nationwide Internet Access $9.95 /Mo.
No Contracts, No Advertisements, No Pop-ups!
http://www.DataDaves.net/

-----Original Message-----
From: Dan Muey [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2003 12:09 PM
To: Randal L. Schwartz; [EMAIL PROTECTED]; David Gerler
Subject: RE: <STDIN> question

That's what I thought too, that's why I asked where STDIN was coming
from.

Always a bad idea to parse the input yourself because, as you found,
Different OS/perl versions/protocals/etc... May need different
parseing
Methods.

But CGI is modular and platform independent and quite easy to use ::

Perldoc -m CGI
Or search.cpan.org

use CGI qw/:standard/;

$monkey = param('monkey');
$joemama = param('joemama');

print header();
print "Hello $monkey - Thanks for filling out my html form and by the
way : $joemama";


DMuey

> >>>>> "David" == David Gerler
> <[EMAIL PROTECTED]> writes:
>
> David> in my script I have a subroutine that begins with this
line...
>
> David> my @stuff = split(/&/,<STDIN>);
>
> My crystal ball says "it's a CGI protocol handler".
>
> To which I must reply "don't use that, use CGI.pm".  Please.
>
> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. -
> +1 503 777 0095 <[EMAIL PROTECTED]>
> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing, Comedy,
> etc. etc. See PerlTraining.Stonehenge.com for onsite and
> open-enrollment Perl training!
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to