Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open url without packages

Status
Not open for further replies.

BigBadDave

Programmer
May 31, 2001
1,069
EU
How can I open a URL for parsing without having to install any packages (as I can't) I don't have lib installed so can't use LWP::UserAgent Regards
David Byng
bd_logo.gif

davidbyng@hotmail.com
 
With no packages you are pretty stuck: as this so completely emasculates perl you should probably check whether you have at least the standard set installed.

If you havn't, you can always do things like

[tt] system "wget --output-document=$tmpfile $url";
open( PAGE, $tmpfile ) or die "$0 $!";[/tt] "As soon as we started programming, we found to our surprise that it wasn't as
easy to get programs right as we had thought. Debugging had to be discovered.
I can remember the exact instant when I realized that a large part of my life
from then on was going to be spent in finding mistakes in my own programs."
--Maurice Wilk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top