Do you know where your variables are? | |
PerlMonks |
Re: Date::Manip and taint modeby Anonymous Monk |
on Jun 18, 2020 at 05:00 UTC ( [id://11118220]=note: print w/replies, xml ) | Need Help?? |
I was bugged by the fact that this works on Linux but not FreeBSD so I spent some time poking at a VM. What I think is going on is that Date::Manip::TZ tries to get the time zone in a few different ways and finally uses shell commands. I think it probably uses files on Linux but winds up running a shell command on FreeBSD. Since $ENV{ENV} is defined on FreeBSD, we get... The line that provokes the error is
I believe the answer is that you need to clean up $ENV{ENV} but I suppose that might also be something that Date::Manip::TZ should be doing. If worse comes to worst, there seem to be a lot of ways to configure the time zone so maybe you can find one that avoids the shell. FWIW, the old version 5 interface doesn't have this problem.
2020-06-21 Athanasius changed "Data::Manip::TZ" link to "Date::Manip::TZ".
In Section
Seekers of Perl Wisdom
|
|