I have use statements for modules that the root user does not know about.
Using lib or a combination of FindBin and lib in the script should help. For details, see the documentation of those modules.
Alexander
In reply to Re^3: Best way to write to a file owned by root?
by afoken
in thread Best way to write to a file owned by root?
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |