Although if you really need to sudo, then it may be the only way.
Even then, I would probably use sudo to run the perl script and use unlink in the script. Having to work with some random default shell is just a mess, and it can be quite dangerous with elevated privileges.
Alexander
In reply to Re^2: [SOLVED]: Using glob in file test gives "Use of uninitialized value in -e" warning.
by afoken
in thread [SOLVED]: Using glob in file test gives "Use of uninitialized value in -e" warning.
by Perl300
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |