Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: LWP helpby mzedeler (Pilgrim) |
on Jun 27, 2009 at 12:32 UTC ( [id://775300]=note: print w/replies, xml ) | Need Help?? |
Short answer: no. LWP doesn't return the document you request, but a response object which - in turn - has an attribute with the content. There is an example on the main documentation page of LWP. LWP will fetch anything you ask it to fetch for you, and let you access it using the content attribute - regardless of what it fetched for you. With regard to your idea about regular expressions: it doesn't work that way - try playing around with LWP a little first. By the way: I think you'll be able to ask much better questions if you try things by yourself first, and ask later.
In Section
Seekers of Perl Wisdom
|
|