Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Getting Confused with the '->' operator

by clintp (Curate)
on Oct 01, 2002 at 00:28 UTC ( #201904=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print LWP::UserAgent->new()->
            request(
                    HTTP::Request->new(GET => 'http://geeksalad.org')
                    )->content;
    
  2. or download this
    if (($_=LWP::UserAgent->new()->
        request(
    ...
                ))->is_success) {
            print $_->content;
    }
    
  3. or download this
    # Create a user agent object
    use LWP::UserAgent;
    ...
    } else {
        print "Bad luck this time\n";
    }
    

Log In?
Username:
Password:

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

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

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (261 votes), past polls