Solved

using Perl to Retrieve a Html File?

Posted on 2001-06-20
4
205 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 120 total points
Comment Utility
use LWP::Simple qw(getprint);
getprint($url);
0
 
LVL 5

Expert Comment

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

- Sapa
0
 

Expert Comment

by:georgedb
Comment Utility
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
Comment Utility
C?!
Was it that a lowsy answer? :-)

0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

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…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now