Is there any reason you don't just run the perl setuid root? (with -T perhaps?)
In reply to Re^5: Automating sudo actions by cjb in thread Automating sudo actions by rastoboy