Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: LWP UserAgent

by blue_cowdawg (Prior)
on Oct 10, 2012 at 20:10 UTC ( #998310=note: print w/ replies, xml ) Need Help??


in reply to LWP UserAgent

      Hi Monks, I have no knowledge of perl, so please forgive.

My heartfelt advice to you is to fix that problem before going any further. Just as I'd not get into a car and drive cross country before I learned a) how to drive and b) how to navigate I don't suggest trying to do something as sophisticated as you're attempting without learning the basics first.

That said, let me lay out a foundation for you.

#!/usr/bin/perl -w ################################################ # First line is called a "shebang" and on a *nix or Cygwin environment + loads the # interpreter use strict; # keep an eye on our code looking for major faults use LWP::UserAgent; my $res=authenticate(); # Call your sub. You might want to # decide what to do with the return cod +e. # more code goes here exit(0); #the code you posted goes here

Find your self a book such as Learning Perl to get a handle on things. I wouldn't attempt to build a house without some basic construction technique knowledge.


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg


Comment on Re: LWP UserAgent
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2014-07-26 10:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls