Help for this page

Select Code to Download


  1. or download this
    my $content = get $url;
    
    changing to 
    
    my $content = get($url);
    
  2. or download this
    $ perl -MLWP::Simple -e 'print get "http://blazar.perlmonk.org/"'
    <?xml version="1.0" encoding="iso-8859-1"?>
    ...
    <p>No, there&#39;s nothing here yet. You&#39;ll find something more, b
    +ut not too much,
    <a href="http://mosquito.scumm.it/~blazar/">here</a>.</p>
    </body></html>
    
  3. or download this
    $ perl -MO=Deparse,-p -MLWP::Simple -e 'print get "http://blazar.perlm
    +onk.org/"'
    use LWP::Simple;
    print(get('http://blazar.perlmonk.org/'));
    -e syntax OK