You've received good answers to your question. I would just add that it is debatable whether the useof the
-e operator is useful here, since you're using it on directory entries just returned by glob. Note that since you mention it, using the
-f operator would definitely be more useful because if would make it possible to apply your action only to regular files (therefore not trying to delete directories, for example).
Another comment is that it is usually considered a poor idea to use shell commands from a Perl script when there is an equivalent command in Perl. See unlink for details. Although if you really need to sudo, then it may be the only way.