How do I...

They have: 117 posts

Joined: Mar 2000

How do I grab a document off the web and stick the HTML into a variable?? Do I need to explain it better?

--Edge

Justin S's picture

They have: 2,076 posts

Joined: Jun 1999

This article might help you: http://www.wdvl.com/Authoring/Languages/Perl/PerlfortheWeb/index5.html

Or maybe it has nothing to do with it...

------------------
My name is Nitsuj. I bet you're thinking WTF...

They have: 850 posts

Joined: Jul 1999

The link Justin posted is what you are looking for. You will need the libwww module installed on the server, than just use the following:

use LWP::Simple;

$html = get("http://www.url.com");

------------------
Personal Site
http://www.wiredstart.com : The Technology Start Page

They have: 117 posts

Joined: Mar 2000

That's just what I was looking for and it works great! Thanks guys!!

--Edge

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.