Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 chilling in the Monastery: (7)
As of 2014-12-25 15:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls