Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Getting Confused with the '->' operator

by clintp (Curate)
on Oct 01, 2002 at 00:28 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://201904]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-25 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found