?
Solved

using Perl to Retrieve a Html File?

Posted on 2001-06-20
4
Medium Priority
?
233 Views
Last Modified: 2012-06-27
I would like to know how to write a Perl program to
retrieve a web page from an URL and display it
in Dos-Prompt(Windows) or in Cosole Mode(UNix)?

for example, display http://www.yahoo.com

thanks!
0
Comment
Question by:McCoffee
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
shlomoy earned 240 total points
ID: 6209957
use LWP::Simple qw(getprint);
getprint($url);
0
 
LVL 5

Expert Comment

by:Sapa
ID: 6209995
It's already written. Look for GET script installed with libwww-perl,
and lwp-request in ActivePerl distribution.

- Sapa
0
 

Expert Comment

by:georgedb
ID: 6210199
There is also a PERL script that has been around I think at least since 1995, as I used it and still got it (somewhere). From memory:

It was written by a Jack Lund, based on HGET from Oscar Nierstrasz, and the script is called "url_get". I'm sure you can find it somewhere on the Internet.
0
 
LVL 8

Expert Comment

by:shlomoy
ID: 6213082
C?!
Was it that a lowsy answer? :-)

0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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 …
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

807 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