reen = $img((1),:,:);
        my $blue  = $img((2),:,:);
        return ($red,$green,$blue);
 }</code></pre>

<h2 id="B.-red-green-blue-rgb_array-data">B. ($red,$green,$blue) = rgb_array($data);</h2>

<p>The function <code>rgb_array()</code> is rather easy, it only returns the Array Slice.</p>

<pre><code> sub rgb_array {
        my ($img) = @_;
        return @{$img}[0..2];    # Array Slice
 }</code></pre>

<h2 id="A.-info_array-array_ref">A. info_array($array_ref)</h2>

<p>The function <code>info_array()<