?
Solved

Perl Web/CGI Question

Posted on 1998-11-24
3
Medium Priority
?
195 Views
Last Modified: 2010-03-04
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
Comment
Question by:mattex
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:mattex
ID: 1206566
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
 

Author Comment

by:mattex
ID: 1206567
Adjusted points to 183
0
 
LVL 5

Accepted Solution

by:
b2pi earned 540 total points
ID: 1206568
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question