Is the code you've shown you whole program? If so, why bother Perl with system requests?
Is the unformatted list beginning "#User alias...." supposed to be the content of your "sudoers" file as implied by the narrative and, if so, why isn't it formatted in code tags as explicitly mentioned in the markup directions at the text box you used to create your question?
Why does this look like an attempt to upgrade unauthorized users/processes to perform (malicious?) actions with root's credentials? (It sure as hell doesn't look like a reasonable exercise for a Perl noob!)