jonknee has asked for the wisdom of the Perl Monks concerning the following question:

I'm new at this Perl stuff so don't laugh ;). What's the best place to learn all there is to know on LWP. I've used it before but pretty much "cut and paste" style which is no good. I am currently looking at how to fill out html forms via the module (I believe LWP::UserAgent would be best for this, no?) but want to use it for other projects down the road. Anyways I haven't found any REALLY good documentation (the CPAN stuff is above me). I guess I learn better by "if you want to do this try this way" instead of "here's a class and umm good luck". Thanks!
  • Comment on Looking for documentation on using LWP and forms

Replies are listed 'Best First'.
Re: LWP help
by grep (Monsignor) on Jan 12, 2002 at 07:48 UTC
    This node should help. There is also a lwpcook file that came with the module.

    perldoc lwpcook

    I would also look at the CPAN docs. Once you start using the OO interface to modules more often the CPAN docs will most likely make more sense (,but I have to agree with you the CPAN docs on LWP::UserAgent leave something to be desired for a newcomer)

    Good Luck

    grep
    grep> cd pub grep> more beer
      What's the best way in your opinion to learn OO especially as it applies to perl?... I am getting there in the round about way but mostly in theory not application and really not anything related to Perl. I am wishing that I started OO right off instead of pulling an "Oh yeah I'll lean that later...". It seems like the way to go for a lot of things and it's definatly the future so I gotta learn it :). Thanks for your help!

        If you are interested in CGI programming Ovid's CGI course does not specifically cover using an OO object but all/most of his examples show how to use the OO interface of CGI.pm.

        Most all modules s/have|only have/ an OO interface so using other modules would be a good idea.

        The Camel Book has some examples in the back, so does the Ram Book.

        HTH

        Update: BTW I was just talking about using the OO interface to a .pm if you want to learn to program OO perl:

      • Object Oriented Perl by TheDamian and merlyn is excellent.
      • The Panther Book has chapters about OO and modules.
      • Effective Perl Programming or the White Pearl Book has a chapters with tips modules and OO. (BTW co-authored with merlyn).
      • and last but not least the perldoc 'perldoc perltoot' or perltoot.

        grep
        grep> cd pub grep> more beer
        I'd start with merlyn's Beginner's Object-Oriented Tutorial aka perlboot... it was specifically written to be a gentle introduction to perl's OO features. Its light-hearted and fun too ;-)

        -Blake

Re: LWP help
by gav^ (Curate) on Jan 12, 2002 at 09:08 UTC
    I'd also add that the docs for HTTP::Request::Common are pretty helpful and makes POST a lot easier. You might also want to investigate HTML::Form.

    On a related note, has anyone looked into WWW::Chat? It looks pretty useful but I'm surprised I've never seen anything about it. Has anyone used it?

    gav^

      That seems to be just what I was looking for (to solve my POST issue). Thanks!
Re: LWP help
by screamingeagle (Curate) on Jan 12, 2002 at 13:18 UTC
    Here are a few articles which ought to be helpful :

    1.WebReview
    2.An Article by merlyn
    3.Another one by merlyn Article
    4.A practical example of how to use LWP (with code) Article
    and lastly ,
    5.something that I'd posted not too long ago :

    Hope it helps :-)