points out, buffer overflows in Perl are very unlikely, since Perl doesn't force array/hash limits. If you want to add 10^100 elements to an array, just make sure you have enough memory. There are a number of resources which can help you on secure programming (in general). Check
for starters. Some bits on Perl & CGI security are
. It helps to turn on warnings (discussed in
... Quidquid perl dictum sit, altum viditur.