Solved

Perl Web/CGI Question

Posted on 1998-11-24
3
185 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
  • 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 180 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Filtering a file to table 9 101
PERL variable conundrum 9 94
Perl modules on linux ec2 3 114
Regex rule to match two different url 5 75
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
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…

821 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