Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: LWP help

by bart (Canon)
on Jun 28, 2009 at 09:27 UTC ( #775429=note: print w/replies, xml ) Need Help??


in reply to Re^2: LWP help
in thread LWP help

Perhaps you should try to use LWP::Simple instead... it will indeed work almost as your made up example. It won't tell you the content-type... but do you really need it? I rarely do.

Use:

  • get to retrieve the contents of a URL into a variable
  • getprint to print the contents of URL, without having to pull it into memory first (saves memory if it's huge)
  • getstore to save the contents of a URL directly to file, without holding it in memory first.

Replies are listed 'Best First'.
Re^4: LWP help
by hnd (Scribe) on Jun 28, 2009 at 10:52 UTC
    thanks bart that thing worked!!!!!!!!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://775429]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2022-05-28 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (99 votes). Check out past polls.

    Notices?