Reduce your code to a small sample that shows the problem and post it.
DWIM is Perl's answer to Gödel
| [reply] |
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}
| [reply] [d/l] |