Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 about the Monastery: (4)
As of 2016-09-25 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (470 votes). Check out past polls.