note
ikegami
<p>As for the question you added,
<blockquote><p><i>Explain why you think this……should produce different output than this…</i></blockquote>
<p>I agree that there should be a function that does that, but it's not <c>reverse</c>.
<p>Explain why you think
<c>
my $water_samples = join '', map chr, 113, 101, 769;
my $last_sample = substr($water_samples, -1, 1);
print(ord($last_sample), "\n");
</c>
<p>should produce different output than
<c>
my $water_samples = join '', map chr, 113, 101, 769;
$water_samples = reverse($water_samples);
my $last_sample = substr($water_samples, 0, 1);
print(ord($last_sample), "\n");
</c>
<p><b>Update</b>: Corrected my numbers.
661510
885210