Help for this page

Select Code to Download


  1. or download this
    $ curl -o 1.weather.html 'https://www.wunderground.com/weather/us/or/p
    +ortland'
      % Total    % Received % Xferd  Average Speed   Time    Time     Time
    +  Current
                                     Dload  Upload   Total   Spent    Left
    +  Speed
    100  847k    0  847k    0     0   487k      0 --:--:--  0:00:01 --:--:
    +--  487k
    $
    
  2. or download this
    $ ./1.wund_wind.pl 
    N5
    $ cat 1.wund_wind.pl 
    ...
    
    say $wind->as_trimmed_text( extra_chars => '\xA0' );
    $
    
  3. or download this
    #!/usr/bin/env perl
    use Mojo::UserAgent;
    use 5.016;
    ...
      # Also include alternate text for images
      print $n->{alt} if $n->type eq 'tag' && $n->tag eq 'img';
    }
    
  4. or download this
    $ ./1.mo_tree.pl 
    Can't connect: Name or service not known at ./1.mo_tree.pl line 9.
    $