Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Perl Web/CGI Question

Posted on 1998-11-24
3
Medium Priority
?
200 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
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

609 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