Solved

Perl Web/CGI Question

Posted on 1998-11-24
3
189 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 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

Industry Leaders: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP equivalent of opening a com object 5 100
Problem with one substitution modifying another 3 83
Perl Awk Need Help 3 145
Matching a random pattern with one common character 2 99
On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…

738 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