Hi,
I am doing a small project for a client that has a shopping cart that
uses a version of the old cgi-lib.pl stuff. After doing some mod_perl
work, I can see where this little lib could cause some problems. Too
many globals and it looks like it was really built for a one-off cgi,
not a persistent mod_perl script or module.
"MOORHOUSE, John NW Group Risk" wrote:
>
> I use a module called cgi-lib.pm which I have found a lot of sites use. the
> reason for using *main::input is that the module using readparse is designed
> to cope with most situations regarding url parsed data.
> http://cgi-lib.stanford.edu/cgi-lib/
> Does any one else disagree with using this, I have used it many times as
> many sites have used it. Its just a case of ease, and if this is old hat I'd
> rather move on to better stuff any comments
>
> John
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 24 December 1999 17:38
> To: MOORHOUSE, John NW Group Risk
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: What am I doing wrong
>
> >>>>> "MOORHOUSE," == MOORHOUSE, John NW Group Risk
> <[EMAIL PROTECTED]> writes:
>
> MOORHOUSE,> Is there any way of initialling a *main::input in one go
> MOORHOUSE,> i.e *main::input=(); doesn't work
>
> This is already heading down the dangerous path. Why are you using
> a symbol-table variable if you don't want a symbol-table variable?
>
> If you want something temporary:
>
> {
> local *main::input;
> $status = whatever->ReadParse(*main::input);
> ... use %main::input;
> }
>
> But the evilness of that ReadParse word is making me shudder already.
> That's so... uh... perl4-ish.
>
> --
> 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!
>
> ********************************************************************
> This e-mail is intended only for the addressee named above.
> As this e-mail may contain confidential or privileged information,
> if you are not the named addressee, you are not authorised to
> retain, read, copy or disseminate this message or any part of it.
> ********************************************************************
--
Craig Shaver, Productivity Group
POB 60458 Sunnyvale, CA 94088 (650)390-0654
http://www.progroup.com/ mailto:[EMAIL PROTECTED]