Gossamer Forum
Quote Reply
Converting some code
I need to use the following code without referencing any GT code.
How do I obtain $IN and replace GT::WWW::get() using just perl?

Code:
my $returned_crypt = $IN->cookie ('PHPSESSID');
my $result_php = GT::WWW::get ('http://www.domain.com/file.php');

Thanks in advance,
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com
Quote Reply
Re: [rgbworld] Converting some code In reply to
Just a quickie... using $IN->cookie *is* using the GT modules, unless you have loaded some other module that has declaired $IN to be an object with a method "cookie"

CGI.pm will do that, GT::CGI is based on that.

Also, GT::WWW::get would be (probably) replaced with LWP::get, you can find that on CPAN.


PUGDOG´┐Ż Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Converting some code In reply to
In Reply To:
Just a quickie... using $IN->cookie *is* using the GT modules[/quote]I know it is using GT modules. So How do I grab a cookie using CGI.pm?

I'll look into it. Thanks for pointing me to the right place, and for the LWP::get info.

Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com