in reply to Re^2: merging arrays
in thread merging arrays

That's exactly the expected behaviour. You loop from $a..$n. So you get some value for $a..$n :)
If you don't want the undefined values, grep for the defined ones:
my @saved_images = grep { defined $_ } @found_images[0 .. $pics_to_fin +d - 1];
cheers,
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}