title: How to put values from a look_down tree array's HTML tag into a regular array in Perl?
body: <p>This is a snippet of code I've got:</p>
  
  <pre><code>#!/usr/bin/perl
  use strict;
  use warnings;
  use LWP::Simple;
  use Time::Piece;
  use HTML::Tree;
  
  my $url0 = 'http://www.website.ch/blah.aspx';
  
  my $doc0 = get($url0);
  
  my $tree0 = HTML::Tree-&gt;new();
  $tree0-&gt;parse($doc0);
  
  my @juice = $tree0-&gt;look_down(
      _tag =&gt; 'option'
  );
  
  foreach ( @juice )
  {
      print $_-&gt;as_HTML, "\n";
  }
  </code></pre>
  
  <p>I understand that there are easier ways to do this--feel free to talk about those ways, but I'm doing it this way for now. I would like to put all the <code>value</code> entries into an array, so <em>e.g.</em> if one of my (what I'm calling) look_down tree array elements is the following</p>
  
  <p><code>&lt;option value="YIDDSH"&gt;Yiddish&lt;/option&gt;</code>,</p>
  
  <p>then I would like to somehow push "YIDDSH" (without quotes) into an array, and the pull in the next value from the next element in the array.</p>