Help for this page

Select Code to Download


  1. or download this
    use LWP::FileHandle;
    lwpopen URL, $method, $url, $query;
    
  2. or download this
    lwpopen URL, GET => $url, 'this=that';
    lwpopen URL, GET => "$url?this=that";  # can append QS to URL
    lwpopen URL, POST => $url, [ this => 'that' ];
    lwpopen URL, POST => $url, { this => 'that' };
    
  3. or download this
    use LWP::FileHandle;
    lwpopen JAPHY, GET => 'http://www.crusoe.net/~jeffp/';
    ...
      print;
    }
    lwpclose JAPHY;
    
  4. or download this
    package LWP::FileHandle;
    
    ...
    sub DESTROY {
      $_[0]{SOCKET}->close;
    }