note
welle
<p>What if my @sentences has a more complicated structure? I get @sentences from querying a Sqlite database with the following:</p>
<code>
$sentences = $dbh->selectall_arrayref("SELECT ID, sentence FROM texts WHERE sentence REGEXP '(?i:$query)'");
</code>
<p>As one can see, the result is made of two elements (ID and sentence). How can I read/manipulate in the code provided by choroba only the second element "sentence", preserving at the end of the sorting operation the same structure ID/sentence?</p>
1003644
1003652