in reply to Re: Why does this only work correctly as root?
in thread Why does this only work correctly as root?

Or even simpler: use autodie qw(system); Then you don't have to modify the rest of the source at all.