Generally Perl is a lot more secure than a C program.
Although it can't be guaranteed free from buffer overruns,
they are very rare and would be very hard to exploit.
Make sure that the program runs with taint checks enabled.
Of course, there's nothing stopping an idiot writing a bit
of insecure Perl code.