Subject: | Setting $ENV{PATH} breaks everything else |
We have our PATH set to find our executables, among other things. For
example, if running as root, /usr/sbin and /sbin may be there. After loading
Log::Dispatch::FileRotate which then loads Date::Manip, the PATH is
screwed up.
You can't go clobbering the global variable %ENV, especially $ENV{PATH}
unilaterally without a local.
Instead of setting this during initialisation, why not localise it inside _cmd?