Help for this page

Select Code to Download


  1. or download this
    
    use LWP; # or is that LWP::Simple ???
    ...
    
    my $url = "http://www.perlmonks.org";
    my $content = get( $url );
    
  2. or download this
    
    package record;
    ...
    my $url = "http://www.perlmonks.org";
    my $content = get( $url );
    
  3. or download this
    
    package record;
    ...
    
    my $url = "http://www.perlmonks.org";
    my $content = get( $url );
    
  4. or download this
    # we're in package main by default; any unqualified subroutine referen
    +ce
    # is understood to refer to a subroutine in the "main" namespace
    ...
    
    my $url = "http://www.perlmonks.org";
    my $content = record::get($url); # because that's the package declared
    + above