Help for this page

Select Code to Download


  1. or download this
    use strict; 
    use warnings;
    ...
    else {
        print $response->status_line, " <URL:$url>\n";
    }
    
  2. or download this
    use strict;
    use warnings;
    
    use LWP::Simple;
    getprint ('http://www.cpan.org/');
    
  3. or download this
    C:\>lwp-download "http://www.cpan.org"
    
  4. or download this
    open MYHANDLE, "GET http://www.perlmonks.org|";
    
    while(<MYHANDLE>) {
      print $_;
    }