• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

Perl Web/CGI Question

I am trying to:

Create a Perl script that will take in a URL, access that URL's source-code, and then print out that source-code.

I am having trouble with accessing the source-code via the Perl scipt.  The script is running on a RH5 Linux System.

Any Help? Thanks!

Matt
matt@anji.smhall.org
0
mattex
Asked:
mattex
  • 2
1 Solution
 
mattexAuthor Commented:
Reading through some more questions, I found this might be done using sockets.

I would kill for some source code at this point!!

Anyone?
0
 
mattexAuthor Commented:
Adjusted points to 183
0
 
b2piCommented:
1.) Get the libwww module

2.) perldoc lwpcook gives:

<snip>

GET
    It is very easy to use this library to just fetch documents from
    the net. The LWP::Simple module provides the get() function that
    return the document specified by its URL argument:

      use LWP::Simple;
      $doc = get 'http://www.sn.no/libwww-perl/';


0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now