• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

using Perl to Retrieve a Html File?

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
McCoffee
Asked:
McCoffee
  • 2
1 Solution
 
shlomoyCommented:
use LWP::Simple qw(getprint);
getprint($url);
0
 
SapaCommented:
It's already written. Look for GET script installed with libwww-perl,
and lwp-request in ActivePerl distribution.

- Sapa
0
 
georgedbCommented:
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
 
shlomoyCommented:
C?!
Was it that a lowsy answer? :-)

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now